Build #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
Linux: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Hello | |
run: echo hello world | |
- name: Create artifact | |
run: echo "linux-1" > linux-1.txt | |
- name: Create artifact | |
run: echo "linux-2" > linux-2.txt | |
- name: Upload actifact | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Linux | |
path: | | |
linux-1.txt | |
linux-2.txt | |
Android: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Hello | |
run: echo hello world | |
- name: Create artifact | |
run: echo "android-1" > android-1.txt | |
- name: Create artifact | |
run: echo "android-2" > android-2.txt | |
- name: Upload actifact | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Android with space | |
path: | | |
android-1.txt | |
android-2.txt | |
Release: | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: [Linux, Android] | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- name: Get all build artifacts | |
uses: actions/download-artifact@v4 | |
- name: List | |
run: find . -name '*' -print | |
- name: compress artifacts into releaseable assets | |
run: | | |
sudo apt-get install rename | |
find . -mindepth 1 -type d -execdir rename "s/ /_/g" "{}" \; | |
find . -mindepth 1 -type d -exec zip -j -r $(echo {} | tr ' ' '-').zip {} \; | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
**.zip |