diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bcd5c756..7885b049 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,36 @@ on: - main jobs: + tag-release: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout repository + uses: actions/checkout@v3.5.2 + with: + fetch-depth: 0 + + - name: Get Version from file + id: get-version + uses: juliangruber/read-file-action@v1.1.6 + with: + path: ./.VERSION + + - name: Configure Git + run: | + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config user.name "$GITHUB_ACTOR" + + - name: Set Reftag + id: tag-version + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + custom_tag: ${{ steps.get-version.outputs.content }} + tag_prefix: "" + cut-release: runs-on: ubuntu-latest needs: tag-release diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml deleted file mode 100644 index 5fddc717..00000000 --- a/.github/workflows/tag.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Tag - -on: - push: - branches: - - main - -jobs: - tag-release: - runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout repository - uses: actions/checkout@v3.5.2 - with: - fetch-depth: 0 - - - name: Get Version from file - id: get-version - uses: juliangruber/read-file-action@v1.1.6 - with: - path: ./.VERSION - - - name: Configure Git - run: | - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - git config user.name "$GITHUB_ACTOR" - - - name: Set Reftag - id: tag-version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: ${{ steps.get-version.outputs.content }} - tag_prefix: ""