diff --git a/.github/workflows/build_nigthly.yml b/.github/workflows/build_nigthly.yml new file mode 100644 index 00000000..3137cb71 --- /dev/null +++ b/.github/workflows/build_nigthly.yml @@ -0,0 +1,32 @@ +name: Build nightly + +on: + workflow_dispatch: + inputs: + build_profile: + description: 'Build profile' + required: true + default: 'release-fast' + +permissions: + contents: write + +jobs: + tag-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Get version from Cargo.toml + id: get_version + run: | + VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2) + echo "VERSION=$VERSION" >> $GITHUB_OUTPUT + + - name: Create and push tag + run: | + echo "Created tag: v${{ steps.get_version.outputs.VERSION }}" + git config user.name github-actions + git config user.email github-actions@github.com + git tag -a v${{ steps.get_version.outputs.VERSION }}-nightly -m "Nightly release ${{ steps.get_version.outputs.VERSION }}" + git push origin v${{ steps.get_version.outputs.VERSION }}-nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 710de94a..13381513 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,10 @@ on: push: tags: - "v*.*.*" + workflow_run: + workflows: ["Build nightly"] + types: + - completed permissions: packages: write @@ -14,7 +18,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 + with: + tag_name: v0.4.5-nightly + title: "v0.4.5-nightly" + body: "Nightly release v0.4.5-nightly" frontend: name: Build frontend