-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to marvinpinto/action-automatic-releases
- Loading branch information
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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: | ||
|