Merge pull request #8 from EdgePi-Cloud/dev #2
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
name: Create Release Tag | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-publish: | |
name: Create Release Tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACTIONS_BOT_TOKEN }} | |
- name: Get Current Version | |
run: echo "current_version=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV | |
- name: Create Release Tag | |
env: | |
commit_name: bot-edgepi | |
commit_email: [email protected] | |
username: bot-edgepi | |
run: | | |
git config user.name ${{ env.commit_name }} | |
git config user.email ${{ env.commit_email }} | |
git tag -a release/v${{ env.current_version }} -m "tag release version ${{ env.current_version }}" | |
git push origin release/v${{ env.current_version }} |