From 7ec278a0fb73eff2ffbf35cdad36e549e2da8fcb Mon Sep 17 00:00:00 2001 From: michalrozekariane <156693677+michalrozekariane@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:15:03 +0100 Subject: [PATCH] deploy-test (#9) * feat: deploy script changed Signed-off-by: michalrozekariane * feat: deploy script deleted Signed-off-by: michalrozekariane * feat: scripts added to package json + gh-pages package Signed-off-by: michalrozekariane * fix: package.json deploy script update Signed-off-by: michalrozekariane * feat: deploy.yml script added Signed-off-by: michalrozekariane * feat: deploy script update Signed-off-by: michalrozekariane * fix: script branch name Signed-off-by: michalrozekariane * fix: deploy script fix Signed-off-by: michalrozekariane * fix: deploy script Signed-off-by: michalrozekariane * fix: package.json deploy script change Signed-off-by: michalrozekariane * fix: deploy.yml change Signed-off-by: michalrozekariane * fix: scirpts update Signed-off-by: michalrozekariane * feat: example text added to test workflow Signed-off-by: michalrozekariane * feat: example text deleted, gh package deleted, package.json and deploy script updated Signed-off-by: michalrozekariane --------- Signed-off-by: michalrozekariane --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++-- package.json | 1 + 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ccb7839..5c83975 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,8 @@ on: push: branches: - main - +permissions: + contents: write jobs: build: name: Build @@ -17,7 +18,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v1 with: - node-version: 21 + node-version: 16 - name: Install dependencies uses: bahmutov/npm-install@v1 @@ -30,3 +31,22 @@ jobs: with: name: production-files path: ./dist + + deploy: + name: Deploy + needs: build + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + + steps: + - name: Download artifact + uses: actions/download-artifact@v2 + with: + name: production-files + path: ./dist + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist diff --git a/package.json b/package.json index 35f8b1d..41a4898 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "token-holders-list", + "homepage": "https://Ashe-Oro-Accelerator.github.io/airdrop-list-builder", "private": true, "version": "0.0.0", "type": "module",