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