mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Create latest tag explicitly
Apparently the github API does too much magic, lets hope removing a step will make it behave
This commit is contained in:
@@ -190,22 +190,28 @@ jobs:
|
||||
mkdir dist/
|
||||
mv artifacts/*_release/* dist/
|
||||
|
||||
- name: Delete Latest
|
||||
if: startsWith(github.ref, 'refs/tags/v') == false
|
||||
- name: Delete Latest Release and Tag
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: dev-drprasad/delete-tag-and-release@v1.0
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: "latest"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create Latest Tag
|
||||
if: github.ref == 'refs/heads/master'
|
||||
working-directory: ${{ inputs.checkout-directory }}
|
||||
run: |
|
||||
git tag -d latest || true
|
||||
git tag latest
|
||||
git push origin latest
|
||||
- id: release_latest
|
||||
name: Release Latest
|
||||
if: startsWith(github.ref, 'refs/tags/v') == false
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
allowUpdates: false
|
||||
artifactErrorsFailBuild: true
|
||||
artifacts: dist/*
|
||||
draft: false
|
||||
generateReleaseNotes: true
|
||||
makeLatest: true
|
||||
name: "Latest (unstable)"
|
||||
|
||||
Reference in New Issue
Block a user