-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (32 loc) · 1009 Bytes
/
master-push.yml
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
name: 'Master Push'
on:
push:
branches:
- 'master'
jobs:
cut-release:
name: 'Cut Release'
runs-on: ubuntu-latest
steps:
- name: 'Install expect'
run: sudo apt-get update && sudo apt-get install -y expect
- name: Install Foundry
uses: foundry-rs/[email protected]
- name: 'Checkout Code'
uses: actions/checkout@v4
- name: 'Run Expect Script'
shell: bash
run: |
script -q -c "expect scripts/soldeer_publish.expect ${{ vars.SOLDEER_EMAIL }} ${{ secrets.SOLDEER_PASSWORD }}" /dev/null
- name: 'Check out code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.push.head.sha }}
fetch-depth: 0
- name: 'Create release'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
short_sha=$(git rev-parse --short ${{ github.sha }})
gh release create ${short_sha} --target ${{ github.sha }}