forked from fabm-model/fabm
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1.32 KB
/
add-release-assets.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
name: Add assets to release
on:
release:
types: [created]
jobs:
release:
name: Add fabm-plus source code
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
- name: Python dependencies
run: python -m pip install git-archive-all
- name: Clone fabm-plus
uses: actions/checkout@v4
with:
repository: fabm-model/fabm-plus
submodules: recursive
fetch-depth: 0
- name: Ensure code is in sync with master
run: |
git config user.name "Automerge Bot"
git config user.email "[email protected]"
git config pull.rebase false
git pull https://github.com/fabm-model/fabm.git
- name: Archive code including submodules
run: |
git-archive-all code.tar.gz
git-archive-all code.zip
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release list --repo fabm-model/fabm
gh release upload ${{ github.ref_name }} code.tar.gz#"Source code including externally maintained biogeochemical models (tar.gz)" --repo fabm-model/fabm
gh release upload ${{ github.ref_name }} code.zip#"Source code including externally maintained biogeochemical models (zip)" --repo fabm-model/fabm