Skip to content

Commit

Permalink
ci: 👷 actions checkout & node
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Mar 23, 2024
1 parent f22d168 commit e8c971b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
url: ${{ steps.clean_branch.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
check-latest: true
node-version: 20
Expand All @@ -38,16 +36,13 @@ jobs:
echo "branch=$BRANCH" >> "$GITHUB_OUTPUT"
echo "page_url=$PAGE_URL" >> "$GITHUB_OUTPUT"
echo "name=page_url::$PAGE_URL" >> $GITHUB_OUTPUT
- name: Run deploy.js
- run: npm run deploy
id: run_deploy
env:
PAGE_URL: ${{ steps.clean_branch.outputs.page_url }}
GITHUB_REF_NAME: ${{ github.ref_name }}
GITHUB_OUTPUT: $GITHUB_OUTPUT
run: npm run deploy
- name: Deploy via rsync
id: deployment
uses: bnnanet/github-actions-rsync@master
- uses: bnnanet/github-actions-rsync@master
with:
RSYNC_OPTIONS: -avzr --delete --exclude '.git*'
RSYNC_SOURCE: ./dist/
Expand Down

0 comments on commit e8c971b

Please sign in to comment.