mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 18:51:34 +02:00
fix(build): working on version of build that tags major/minor release line
This commit is contained in:
19
.github/workflows/release-please.yaml
vendored
19
.github/workflows/release-please.yaml
vendored
@@ -59,7 +59,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: GoogleCloudPlatform/release-please-action@v2.5.7
|
- uses: GoogleCloudPlatform/release-please-action@v2.8.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
|
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
|
||||||
release-type: node
|
release-type: node
|
||||||
@@ -70,9 +70,24 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: GoogleCloudPlatform/release-please-action@v2.5.7
|
- uses: GoogleCloudPlatform/release-please-action@v2.8.0
|
||||||
|
id: release
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release-type: node
|
release-type: node
|
||||||
package-name: ${{env.ACTION_NAME}}
|
package-name: ${{env.ACTION_NAME}}
|
||||||
command: github-release
|
command: github-release
|
||||||
|
- name: tag major and patch versions
|
||||||
|
run: |
|
||||||
|
git config user.name github-actions[bot]
|
||||||
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
|
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/google-github-actions/release-please-action.git"
|
||||||
|
git tag -d v${{ steps.release.outputs.major }}; echo ok
|
||||||
|
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok
|
||||||
|
git push origin :v${{ steps.release.outputs.major }}; echo ok
|
||||||
|
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}; echo ok
|
||||||
|
git tag -a v${{ steps.release.outputs.major }}
|
||||||
|
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
|
||||||
|
git push origin v${{ steps.release.outputs.major }}
|
||||||
|
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }};
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
|||||||
Reference in New Issue
Block a user