Skip to content

Commit

Permalink
ci: merge gh-pages and gh release into one job
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Aug 27, 2023
1 parent 54e5e1f commit 3773494
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 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

gh-pages:
release:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
Expand All @@ -39,39 +39,22 @@ jobs:
cache: pnpm
node-version: latest

- name: build
- name: install dependencies
run: pnpm install

- name: build for gh-pages
env:
PUBLIC_PATH: '/metacubexd'
run: |
pnpm install
pnpm build
run: pnpm build

- name: Publish Github Pages
- 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: build for release
run: pnpm build

- name: zip
run: |
Expand Down

0 comments on commit 3773494

Please sign in to comment.