Skip to content

Commit 95ae9b5

Browse files
author
Justin Marquez
committed
Merge branch 'main' of github.com:jemarq04/cpp-argparse
2 parents 65d5627 + f6c659c commit 95ae9b5

1 file changed

Lines changed: 18 additions & 27 deletions

File tree

.github/workflows/autorelease.yml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Publish new release
2-
#on:
3-
# push:
4-
# branches:
5-
# - main
6-
# paths:
7-
# - argparse.h
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- argparse.h
88

9-
on: workflow_dispatch
9+
#on: workflow_dispatch
1010

1111
jobs:
1212
new-release:
@@ -31,24 +31,15 @@ jobs:
3131
cat makefile
3232
make
3333
mv argparse-combined.h argparse.h
34+
- name: Create release
35+
if: ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
36+
id: create_release
37+
uses: softprops/action-gh-release@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
tag_name: ${{ steps.newVersion.outputs.value }}
42+
files: argparse.h
43+
44+
3445

35-
# - name: Create release
36-
# if: ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
37-
# id: create_release
38-
# uses: actions/create-release@v1
39-
# env:
40-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
# with:
42-
# tag_name: ${{ steps.newVersion.outputs.value }}
43-
# release_name: ${{ steps.newVersion.outputs.value }}
44-
# - name: Upload release asset
45-
# if: ${{ steps.oldVersion.outputs.tag != steps.newVersion.outputs.value }}
46-
# uses: actions/upload-release-asset@v1
47-
# with:
48-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
49-
# asset_path: argparse.h
50-
# asset_name: argparse.h
51-
52-
53-
54-

0 commit comments

Comments
 (0)