Skip to content

Commit 506c974

Browse files
committed
ci: a bit of automation for cutting releases
1 parent 2e555be commit 506c974

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "20*"
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [macos-latest, windows-latest]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: configure
22+
run: cmake .
23+
- name: build
24+
run: cmake --build .
25+
- name: "Upload to Tagged Release"
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
files: "AtomicParsley*"
29+
env:
30+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

tools/tag-release.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
TAGNAME=$(git "show" "-s" "--format=%cd.%h" "--date=format:%Y%m%d.%H%M%S")
3+
git tag $TAGNAME

0 commit comments

Comments
 (0)