Browse Source

split nightly into its own workflow

pull/2261/head
Tristan Sloughter 5 years ago
parent
commit
1b74868f09
No known key found for this signature in database GPG Key ID: AAB97DDECCEB8150
2 changed files with 32 additions and 13 deletions
  1. +0
    -13
      .github/workflows/main.yml
  2. +32
    -0
      .github/workflows/nightly.yml

+ 0
- 13
.github/workflows/main.yml View File

@ -27,16 +27,3 @@ jobs:
run: ./bootstrap run: ./bootstrap
- name: CT tests - name: CT tests
run: ./rebar3 ct run: ./rebar3 ct
- name: Configure AWS credentials
if: matrix.otp_version == 19
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Copy rebar3 escript to S3
if: matrix.otp_version == 19
run: |
aws s3 sync ./rebar3 s3://rebar3-nightly

+ 32
- 0
.github/workflows/nightly.yml View File

@ -0,0 +1,32 @@
name: Nightly
on:
push:
branches:
- 'master'
jobs:
build:
name: Publish escript for every merge to master
runs-on: ubuntu-latest
container:
image: erlang:19
steps:
- uses: actions/checkout@v1
- name: Compile
run: ./bootstrap
- name: CT tests
run: ./rebar3 ct
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Copy rebar3 escript to S3
run: |
aws s3 sync ./rebar3 s3://rebar3-nightly

Loading…
Cancel
Save