Skip to content

Commit

Permalink
Update build-beta.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
This-is-XiaoDeng authored Dec 16, 2023
1 parent ff1126a commit 0f54079
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,26 @@ jobs:
with:
name: OneDisc ${{ needs.get-version-number.outputs.VERSION }} for ${{ matrix.os }}-${{ matrix.arch }}
path: build/onedisc

deloy-pages:
needs: [get-version-number, build, build-windows]
runs-on: ubuntu-latest
steps:

- name: "Checkout"
uses: actions/checkout@v3

- name: "Get output files"
run: |
mkdir output
echo '{"version": "$VERSION"}' > output/beta.json
curl -o output/artifacts.json https://api.github.com/repos/ITCraftDevelopmentTeam/OneDisc/actions/runs/$RUN_ID/artifacts
env:
VERSION: ${{ needs.get-version-number.outputs.VERSION }}
RUN_ID: ${{ github.run_id }}

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: output

0 comments on commit 0f54079

Please sign in to comment.