-
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.
actions: github actions for deployments
- Loading branch information
1 parent
e9f8430
commit 41b28cf
Showing
4 changed files
with
55 additions
and
22 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
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,33 @@ | ||
name: "🏷️ Create Tag" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
create-tag: | ||
name: "🏷️ Create Tag" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "💻 Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "🏷️ Set Tag Output" | ||
id: set-tag | ||
run: echo "::set-output name=tag_name::v$(Scripts/get-version.sh)" | ||
|
||
- name: "🏷️ Create Tag" | ||
uses: actions/github-script@v3 | ||
env: | ||
TAG: ${{ steps.set-tag.outputs.tag_name }} | ||
with: | ||
github-token: ${{ github.token }} | ||
script: | | ||
github.git.createRef({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
ref: "refs/tags/${{ steps.set-tag.outputs.tag_name }}", | ||
sha: context.sha | ||
}) |
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
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