Skip to content

Commit

Permalink
Itch-io builds fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 2, 2024
1 parent 83de4e8 commit abc18b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/DeployPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,17 @@ jobs:
run: |
cd ${{ github.workspace }}/src/asteroids-website
npm run build-compressed
- name: Upload compressed artifact
- name: Upload github pages artifact
id: upload-compressed
uses: actions/upload-pages-artifact@v2
with:
path: '${{ github.workspace }}/src/asteroids-website/build'
- name: Upload itch.io artifact
id: upload
uses: actions/upload-artifact@v4
with:
name: itch-io
path: '${{ github.workspace }}/src/asteroids-website/build'

deploy-github-pages:
runs-on: ubuntu-latest
Expand All @@ -126,22 +132,16 @@ jobs:
- name: Download artifact compressed
uses: actions/download-artifact@v4
with:
name: github-pages
name: itch-io
path: asteroids
- name: Create compressed ZIP
run: |
cd ./asteroids
mkdir ./asteroids
tar -xvf ./artifact.tar -C ./asteroids
zip -r ../asteroids-v${{ needs.build.outputs.datetime}}.zip ./asteroids/
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.ITCHIO_API_KEY }}
CHANNEL: html
VERSION: v${{ needs.build.outputs.datetime }}
ITCH_GAME: asteroids
ITCH_USER: dylanlangston
PACKAGE: ./asteroids-v${{ needs.build.outputs.datetime }}.zip
PACKAGE: ./asteroids/itch-io.zip


release:
Expand Down

0 comments on commit abc18b2

Please sign in to comment.