From 1f1f2c033db4f3ff685d830f2ee1333d8fe3a829 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 13 Jul 2024 19:14:19 -0500 Subject: [PATCH] auto releases --- .github/workflows/pre-release.yaml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/pre-release.yaml diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml new file mode 100644 index 00000000..651ff792 --- /dev/null +++ b/.github/workflows/pre-release.yaml @@ -0,0 +1,36 @@ +name: Pre-Release LinUtil + +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 }} + files: ./linutil + prerelease: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file