Skip to content

Commit 3e0b555

Browse files
author
Massimiliano Pippi
authored
[skip changelog] Add Github workflow to push nightlies (#369)
* add nightly workflow * fix yaml
1 parent 5e1627d commit 3e0b555

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: .github/workflows/nightly.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: nightly
2+
3+
on:
4+
schedule:
5+
# run every day at 1AM
6+
- cron: '0 1 * * *'
7+
8+
jobs:
9+
publish-nightly:
10+
runs-on: ubuntu-latest
11+
12+
container:
13+
image: arduino/arduino-cli:builder-0.1
14+
volumes:
15+
# cache go dependencies across pipeline's steps
16+
- $PWD/go:/go
17+
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v1
21+
22+
- name: build
23+
run: goreleaser --snapshot
24+
25+
- name: upload
26+
uses: docker://plugins/s3
27+
env:
28+
PLUGIN_SOURCE: 'dist/*'
29+
PLUGIN_TARGET: '/arduino-cli/nightly'
30+
PLUGIN_BUCKET: 'arduino-downloads-prod-beagle'
31+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
32+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)