-
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.
- Loading branch information
1 parent
7545a00
commit c5266d3
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# This is how you use the ga-project-version action | ||
- name: Get version of the project | ||
id: project-version | ||
uses: 'euberdeveloper/ga-project-version@main' | ||
with: | ||
package-manager: 'npm' | ||
|
||
# In this step the exposed version is used as tag of a github release to publish | ||
- name: Add release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.ACTIONS }}" | ||
# This is how you access the exposed version | ||
automatic_release_tag: "${{ steps.project-version.outputs.version }}" | ||
prerelease: 'false' | ||
title: "${{ steps.project-version.outputs.version }}" |