Skip to content

Commit 7f49805

Browse files
authored
Merge pull request #11 from micrictor/master
Add autobuild to stable
2 parents 764b9d1 + 2924262 commit 7f49805

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/stable.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Stable Rust
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 2 * * 3'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: |
14+
make build
15+
make test
16+
env:
17+
RUST_VERSION: stable
18+
publish:
19+
needs: [test]
20+
if: github.repository == 'rust-serverless/lambda-rust'
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- run: make publish-tag
25+
env:
26+
RUST_VERSION: stable
27+
create_issue:
28+
runs-on: ubuntu-latest
29+
needs: [publish]
30+
if: always() && (needs.publish.result == 'failure')
31+
steps:
32+
- run: gh issue create --title "Stable publication failed" --body "Stable publication failed" --label "bug" -R $GITHUB_REPOSITORY
33+
env:
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+

0 commit comments

Comments
 (0)