forked from python-microscopy/python-microscopy
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.67 KB
/
make_release.yml
File metadata and controls
50 lines (46 loc) · 1.67 KB
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
40
41
42
43
44
45
46
47
48
49
50
name: Make release
on:
workflow_dispatch
jobs:
release:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: update version
run: |
#python -m pip install --upgrade pip
#pip install setuptools wheel twine cython numpy==1.14 pyyaml
python PYME/update_version.py >> $GITHUB_ENV
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "update version" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
branch: ${{ github.ref }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.PYMEVERSION }}
release_name: Release ${{ env.PYMEVERSION }}
# - name: Tigger package build
# run: |
# curl \
# -X POST https://api.github.com/repos/python-microscopy/pyme-conda-recipes/actions/workflows/build_pyme_packages.yml/dispatches \
# -H "Accept: application/vnd.github.v3+json" \
# -u ${{ secrets.REC_REPO_TOKEN }}\
# -d '{"ref":"ref"}'