Skip to content

Commit

Permalink
Move to marvinpinto/action-automatic-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Jan 7, 2024
1 parent defa897 commit 897b544
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/build_and_release_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,41 @@ on:
- '*'

jobs:
createrelease:
name: createrelease
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"

steps:
- name: Check out code
uses: actions/checkout@v4
- name: create release
- uses: "marvinpinto/action-automatic-releases@latest"
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true

- name: Output Release URL File
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt

- name: Save Release URL file for publish
uses: actions/upload-artifact@v3
with:
name: release_url
path: release_url.txt

- uses: little-core-labs/get-git-tag@v3.0.2
id: tagName

- name: Output git tag
run: echo "${{ steps.tagName.outputs.tag }}" > git_tag.txt

- name: Save git tag file for publish
uses: actions/upload-artifact@v3
with:
name: git_tag
path: git_tag.txt


build_and_upload:
needs: createrelease
needs: tagged-release
name: build_and_upload
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 897b544

Please sign in to comment.