Skip to content

Commit 15b2ed1

Browse files
authored
Merge pull request #2 from rustbase/alpha/rustbase-0.1.3-beta
feat: rustbase-0.1.3-beta
2 parents bb8d2aa + 0049a8a commit 15b2ed1

12 files changed

Lines changed: 453 additions & 1254 deletions

File tree

.github/workflows/release.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: Release
8+
9+
jobs:
10+
build:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Install Protoc
18+
uses: arduino/setup-protoc@v1
19+
20+
- name: Install MinGW
21+
uses: egor-tensin/setup-mingw@v2
22+
23+
- name: Build project # This would actually build your project, using zip for an example artifact
24+
run: |
25+
bash ./scripts/release.sh
26+
27+
- name: Create Release
28+
id: create_release
29+
uses: actions/create-release@v1
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: Rustbase ${{ github.ref }}
35+
body: |
36+
To update Rustbase
37+
```bash
38+
rustbase upgrade
39+
```
40+
draft: false
41+
prerelease: false
42+
43+
- name: Upload Linux artifact
44+
id: upload-linux
45+
uses: actions/upload-release-asset@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
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
50+
asset_path: ./release/rustbase-cli-linux-x64.zip
51+
asset_name: rustbase-cli-linux-x64.zip
52+
asset_content_type: application/zip
53+
54+
- name: Upload Windows artifact
55+
id: upload-windows
56+
uses: actions/upload-release-asset@v1
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
with:
60+
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
61+
asset_path: ./release/rustbase-cli-windows-x64.zip
62+
asset_name: rustbase-cli-windows-x64.zip
63+
asset_content_type: application/zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target
2+
/release
23

34
# REPL
45
repl.history

0 commit comments

Comments
 (0)