linutil/.github/workflows/pre-release.yaml

43 lines
1.2 KiB
YAML
Raw Normal View History

2024-07-14 01:14:19 +01:00
name: Pre-Release LinUtil
2024-07-14 01:36:04 +01:00
permissions:
contents: write # Grant write permissions to contents
packages: write # Grant write permissions to packages
2024-07-14 01:14:19 +01:00
on:
workflow_run:
workflows: ["rust"] #Ensure rust is done
types:
- completed
workflow_dispatch: # Manual trigger added
jobs:
build-runspace:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.extract_version.outputs.version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Extract Version
id: extract_version
run: |
version=$(date +"%Y.%m.%d")
echo "version=$version" >> $GITHUB_ENV
echo "version=$version" >> $GITHUB_OUTPUT
shell: bash
- name: Create and Upload Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.extract_version.outputs.version }}
name: Pre-Release ${{ steps.extract_version.outputs.version }}
2024-07-14 02:07:34 +01:00
files: |
./linutil
./start.sh
2024-07-14 01:44:51 +01:00
generate_release_notes: true
2024-07-14 01:14:19 +01:00
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}