forked from softprops/lambda-rust
-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (41 loc) · 1.09 KB
/
stable.yml
File metadata and controls
43 lines (41 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build Stable Rust
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 3'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
make build
make test
env:
RUST_VERSION: stable
publish:
needs: [test]
if: github.repository == 'rust-serverless/lambda-rust'
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Login to Docker hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish
shell: bash
run: |
make publish-tag
env:
RUST_VERSION: stable
create_issue:
runs-on: ubuntu-latest
needs: [publish]
if: always() && (needs.publish.result == 'failure')
steps:
- run: gh issue create --title "Stable publication failed" --body "Stable publication failed" --label "bug" -R $GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}