mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
prepare for initial release
This commit is contained in:
56
.github/workflows/release.yml
vendored
Normal file
56
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
---
|
||||
name: "tagged-release"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.0-9]+.0-9]+"
|
||||
|
||||
jobs:
|
||||
flatpak:
|
||||
name: Flatpak
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: bilelmoussaoui/flatpak-github-actions:gnome-46
|
||||
options: --privileged
|
||||
steps:
|
||||
- name: Install pre-requisits
|
||||
run: dnf update -y && dnf install -y git-lfs cargo
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
|
||||
with:
|
||||
bundle: toolboxtuner.flatpak
|
||||
manifest-path: build-aux/org.kuchelmeister.ToolboxTuner.json
|
||||
run-tests: true
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
upload-artifact: false
|
||||
- name: Vendor dependencies
|
||||
run: ./build-aux/dist-vendor.sh dist . && tar czf vendor.tar.gz dist
|
||||
- name: Checksum for vendored dependencies
|
||||
run: sha256sum vendor.tar.gz > vendor.tar.gz.sha256sum
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: |
|
||||
*.tar.gz
|
||||
*.flatpak
|
||||
*.sha256sum
|
||||
- name: ls
|
||||
run: ls
|
||||
publish-prerelease:
|
||||
needs: [flatpak]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- name: Show files
|
||||
run: ls -R
|
||||
- uses: "dciborow/action-github-releases@v1.0.1"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: false
|
||||
files: |
|
||||
**/*.flatpak
|
||||
**/*.tar.gz
|
||||
**/*.sha256sum
|
||||
|
||||
Reference in New Issue
Block a user