Skip to content

Commit

Permalink
Create a github action for tagged releases
Browse files Browse the repository at this point in the history
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
laudrup committed Sep 5, 2021
1 parent c989fcd commit b090c41
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverity.yml
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:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
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}

0 comments on commit b090c41

Please sign in to comment.