Skip to content

Commit

Permalink
deploy-test (#9)
Browse files Browse the repository at this point in the history
* feat: deploy script changed

Signed-off-by: michalrozekariane <[email protected]>

* feat: deploy script deleted

Signed-off-by: michalrozekariane <[email protected]>

* feat: scripts added to package json + gh-pages package

Signed-off-by: michalrozekariane <[email protected]>

* fix: package.json deploy script update

Signed-off-by: michalrozekariane <[email protected]>

* feat: deploy.yml script added

Signed-off-by: michalrozekariane <[email protected]>

* feat: deploy script update

Signed-off-by: michalrozekariane <[email protected]>

* fix: script branch name

Signed-off-by: michalrozekariane <[email protected]>

* fix: deploy script fix

Signed-off-by: michalrozekariane <[email protected]>

* fix: deploy script

Signed-off-by: michalrozekariane <[email protected]>

* fix: package.json deploy script change

Signed-off-by: michalrozekariane <[email protected]>

* fix: deploy.yml change

Signed-off-by: michalrozekariane <[email protected]>

* fix: scirpts update

Signed-off-by: michalrozekariane <[email protected]>

* feat: example text added to test workflow

Signed-off-by: michalrozekariane <[email protected]>

* feat: example text deleted, gh package deleted, package.json and deploy script updated

Signed-off-by: michalrozekariane <[email protected]>

---------

Signed-off-by: michalrozekariane <[email protected]>
  • Loading branch information
michalrozekariane authored Mar 19, 2024
1 parent 1f67c33 commit 7ec278a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches:
- main

permissions:
contents: write
jobs:
build:
name: Build
Expand All @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7ec278a

Please sign in to comment.