Skip to content

Commit 897b544

Browse files
committed
Move to marvinpinto/action-automatic-releases
1 parent defa897 commit 897b544

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/build_and_release_github.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,41 @@ on:
66
- '*'
77

88
jobs:
9-
createrelease:
10-
name: createrelease
11-
runs-on: ubuntu-latest
12-
if: startsWith(github.ref, 'refs/tags/')
9+
tagged-release:
10+
name: "Tagged Release"
11+
runs-on: "ubuntu-latest"
12+
1313
steps:
14-
- name: Check out code
15-
uses: actions/checkout@v4
16-
- name: create release
14+
- uses: "marvinpinto/action-automatic-releases@latest"
1715
id: create_release
18-
uses: actions/create-release@v1
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2116
with:
22-
tag_name: ${{ github.ref }}
23-
release_name: ${{ github.ref }}
24-
draft: true
17+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2518
prerelease: false
19+
draft: true
20+
2621
- name: Output Release URL File
2722
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
23+
2824
- name: Save Release URL file for publish
2925
uses: actions/upload-artifact@v3
3026
with:
3127
name: release_url
3228
path: release_url.txt
29+
3330
- uses: little-core-labs/[email protected]
3431
id: tagName
32+
3533
- name: Output git tag
3634
run: echo "${{ steps.tagName.outputs.tag }}" > git_tag.txt
35+
3736
- name: Save git tag file for publish
3837
uses: actions/upload-artifact@v3
3938
with:
4039
name: git_tag
4140
path: git_tag.txt
4241

43-
4442
build_and_upload:
45-
needs: createrelease
43+
needs: tagged-release
4644
name: build_and_upload
4745
runs-on: ubuntu-latest
4846
steps:

0 commit comments

Comments
 (0)