Skip to content

add wasm to release workflow (#15) #16

add wasm to release workflow (#15)

add wasm to release workflow (#15) #16

Workflow file for this run

name: Build Application and Make Release
on:
push:
tags:
- '*'
permissions:
contents: write
pages: write
id-token: write
jobs:
build_release:
name: Build Release
uses: ./.github/workflows/build.yml
with:
build_type: Release
secrets: inherit
create_release:
needs: build_release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
path: 'QFRCScouter-source'
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Grab and store version
run: |
tag_name=$(echo ${{ github.ref }} | grep -oE "[^/]+$")
echo "VERSION=$tag_name" >> $GITHUB_ENV
- name: Package artifacts properly
run: |
mv ${{ github.workspace }}/QFRCScouter-source QFRCScouter-${{ env.VERSION }}
ls *
mv QFRCScouter-Linux-Binary*/QFRCScouter.tar.gz QFRCScouter-Linux-Binary-${{ env.VERSION }}.tar.gz
mv QFRCScouter-*.AppImage/QFRCScouter-*.AppImage QFRCScouter-Linux-${{ env.VERSION }}-x86_64.AppImage
zip -r QFRCScouter-Windows-Portable-${{ env.VERSION }}.zip QFRCScouter-Windows-Portable*/* QFRCScouter-Windows-Portable-${{ env.VERSION }}.zip
tar xf QFRCScouter-macOS*/QFRCScouter.tar.gz
mv Scouter*.app QFRCScouter-macOS-${{ env.VERSION }}.app
zip -r QFRCScouter-macOS-${{ env.VERSION }}.zip QFRCScouter-macOS-${{ env.VERSION }}.app
tar -czf QFRCScouter-${{ env.VERSION }}.tar.gz QFRCScouter-${{ env.VERSION }}
mv QFRCScouter-Android*/*.apk QFRCScouter-Android-${{ env.VERSION }}.apk
tar xf github-pages/artifact.tar -C wasm
zip -r QFRCScouter-Web-${{ env.VERSION }}.zip wasm/*
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: QFRCScouter ${{ env.VERSION }}
draft: true
prerelease: false
files: |
QFRCScouter-Linux-Binary-${{ env.VERSION }}.tar.gz
QFRCScouter-Linux-${{ env.VERSION }}-x86_64.AppImage
QFRCScouter-Windows-Portable-${{ env.VERSION }}.zip
QFRCScouter-${{ env.VERSION }}.tar.gz
QFRCScouter-Android-${{ env.VERSION }}.apk
QFRCScouter-macOS-${{ env.VERSION }}.zip
QFRCScouter-Web-${{ env.VERSION }}.zip