From e8c971b35ef64fed54c6f08f01e6c411603bdaaf Mon Sep 17 00:00:00 2001 From: jojobyte <184880+jojobyte@users.noreply.github.com> Date: Sat, 23 Mar 2024 07:43:37 -0600 Subject: [PATCH] ci: :construction_worker: actions checkout & node --- .github/workflows/static.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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/