Skip to content

Commit

Permalink
CI: Update actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored Aug 26, 2024
1 parent f11ee10 commit 9a1d88c
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
contents: write

jobs:
build:
name: Build Files
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 12.x
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 12.x
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install Dependencies
Expand All @@ -35,7 +38,7 @@ jobs:
npm install
npm run build
- name: Upload Artifacts 🔺
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand All @@ -45,19 +48,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: dist
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN : ${{ secrets.TOKEN_PUSH }} # set TOKEN_PUSH in secrets
BRANCH: deploy
FOLDER: dist
SINGLE_COMMIT: true

branch: deploy
folder: dist
single-commit: true

0 comments on commit 9a1d88c

Please sign in to comment.