From 3425668bc569d2e0734ce376f855b7f1dafcf569 Mon Sep 17 00:00:00 2001 From: itschip Date: Sun, 5 Nov 2023 00:36:13 +0100 Subject: [PATCH] ci: test new nightly workflow --- .github/workflows/nightly.yml | 32 +++++++++++++++++++++++++++ .github/workflows/prerelease.yml | 12 +++++----- .github/workflows/tagged-releases.yml | 5 ++--- 3 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 000000000..fcd554745 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,32 @@ +name: Nightly release + +permissions: + id-token: write + contents: write + actions: write + deployments: write + pull-requests: read + + +on: + push: + branches: + - master + +jobs: + create-nightly-release: + name: Create Nightly relesae + runs-on: ubuntu-latest + + steps: + - name: Get tag + uses: project-error/get-tag@v1.0 + with: + environment: "dev" + prerelease: true + id: get_tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Output releas tag + run: echo "New release tag ${{ steps.get_tag.outputs.release_tag }}" diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 11b620f85..5a3048557 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -1,11 +1,7 @@ name: Nightly release on: - push: - branches: - - master - tags-ignore: - - v* + workflow_dispatch: jobs: create-nightly-release: @@ -16,8 +12,12 @@ jobs: - name: Get tag run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//} id: get_tag + + - name: Get new tag + id: get_new_tag + - name: Checkout source code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ github.event.repository.default_branch }} diff --git a/.github/workflows/tagged-releases.yml b/.github/workflows/tagged-releases.yml index bb41df7a4..9ebe55523 100644 --- a/.github/workflows/tagged-releases.yml +++ b/.github/workflows/tagged-releases.yml @@ -1,8 +1,7 @@ name: Tagged Release Publisher on: - push: - tags: - - "v*" + workflow_dispatch: + jobs: create-tagged-release: name: Build and Create Tagged Release