Skip to content

Commit f464a66

Browse files
authored
Update c-cpp.yml
1 parent 023b399 commit f464a66

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed

.github/workflows/c-cpp.yml

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,26 @@
1-
name: C/C++ CI
1+
name: Build and Release
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88

9+
workflow_dispatch:
10+
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
914
jobs:
1015
build:
11-
12-
runs-on: ubuntu-18.04
16+
runs-on: ubuntu-latest
1317

1418
steps:
15-
- uses: actions/checkout@v2
16-
- name: Build
17-
run: bash deploy.sh
18-
- name: Delete last Continuous Release
19-
uses: dev-drprasad/delete-tag-and-release@v0.2.0
20-
with:
21-
delete_release: true
22-
tag_name: continuous
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
- name: Create Release
26-
id: create_release
27-
uses: actions/create-release@v1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
with:
31-
tag_name: "continuous"
32-
release_name: Release ${{ github.ref }}
33-
draft: false
34-
prerelease: false
35-
- name: Upload Release Asset
36-
id: upload-release-asset
37-
uses: actions/upload-release-asset@v1
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
with:
41-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
42-
asset_path: ./make-portable
43-
asset_name: make-portable
44-
asset_content_type: application/octet-stream
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Build and Release
23+
run: |
24+
bash deploy.sh
25+
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
26+
bash upload.sh make-portable

0 commit comments

Comments
 (0)