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",