From 1b74868f09a21afc5b17686f64ce04b3d42b7d15 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 18 Apr 2020 13:13:33 -0600 Subject: [PATCH] split nightly into its own workflow --- .github/workflows/main.yml | 13 ------------- .github/workflows/nightly.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e6432f2..09833dd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,16 +27,3 @@ jobs: run: ./bootstrap - name: CT tests 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 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..8c2021df --- /dev/null +++ b/.github/workflows/nightly.yml @@ -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