Skip to content

Commit

Permalink
fix: release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Aug 27, 2023
1 parent 0a783a3 commit 3bab638
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node

release:
gh-pages:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
Expand All @@ -40,18 +40,41 @@ jobs:
node-version: latest

- name: build
env:
PUBLIC_PATH: '/metacubexd'
run: |
pnpm install
pnpm build
- name: attach release artifacts
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: ${{ needs.release-please.outputs.tag_name }}

- name: Publish Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

release:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: latest

- uses: actions/setup-node@v3
with:
cache: pnpm
node-version: latest

- name: build
run: |
pnpm install
pnpm build
- name: attach release artifacts
uses: softprops/action-gh-release@v1
with:
files: dist/**
tag_name: ${{ needs.release-please.outputs.tag_name }}

0 comments on commit 3bab638

Please sign in to comment.