-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a github action for tagged releases
Create a zip file with the source code excluding hidden files (eg. .git) and upload that as a release artifact whenever a tag starting with v is pushed.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
name: "coverage" | ||
name: coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- master | ||
|
||
jobs: | ||
codecoverage: | ||
|
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
name: "coverity" | ||
name: coverity | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- master | ||
|
||
jobs: | ||
coverity-scan: | ||
|
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,30 @@ | ||
--- | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Get latest tag | ||
uses: little-core-labs/get-git-tag@v3.0.2 | ||
- name: Create zip file | ||
shell: bash | ||
run: | | ||
mkdir /tmp/boost-wintls-${GIT_TAG_NAME} | ||
cp -r * /tmp/boost-wintls-${GIT_TAG_NAME} | ||
cd /tmp/ | ||
zip -r boost-wintls-${GIT_TAG_NAME}.zip boost-wintls-${GIT_TAG_NAME} | ||
- name: Upload release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
/tmp/boost-wintls-${GIT_TAG_NAME} |