Skip to content

Commit

Permalink
CFR: Upload application bundle artifacts to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jul 7, 2024
1 parent 3b5f012 commit fdb955e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,33 @@ jobs:
string: "${{ runner.os }}-${{ runner.arch }}"

- name: Upload artifact for Linux and macOS
id: artifact-upload
if: runner.os != 'Windows'
uses: actions/upload-artifact@v4
with:
name: "cratedb-cfr-${{ steps.artifact-suffix.outputs.lowercase }}"
path: dist/cratedb-cfr

- name: Upload artifact for Windows
id: artifact-upload
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
with:
name: "cratedb-cfr-${{ steps.artifact-suffix.outputs.lowercase }}"
path: dist/cratedb-cfr.exe

- name: Output artifact URL
run: echo 'Artifact URL is ${{ steps.artifact-upload.outputs.artifact-url }}'

- name: Configure GitHub Pages
uses: actions/configure-pages@v3

- name: Upload artifact to GitHub Pages 🚀
if: runner.os != 'Windows'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ~dist/cratedb-cfr
target-folder: "tmp/${{ steps.artifact-suffix.outputs.lowercase }}"

# TODO: Upload to release assets or GitHub Pages, when invoked on "tag" event.
#if: startsWith(github.event.ref, 'refs/tags')

0 comments on commit fdb955e

Please sign in to comment.