diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index d5bbb71..0fa9455 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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 @@ -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/