Skip to content

Commit c60fe0d

Browse files
committed
Add test_release_publisher.yml
1 parent ece4972 commit c60fe0d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Test Release Publisher"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test_release_publisher:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
# Simulate the `fetch_release.py` script outputs by directly setting environment variables
15+
- name: Mock fetch-release outputs
16+
# TODO Parametrize all these and check results
17+
#run: |
18+
#echo "MICROMAMBA_NEW_VERSION=true" >> $GITHUB_ENV
19+
#echo "MICROMAMBA_VERSION=1.1.0" >> $GITHUB_ENV
20+
#echo "MICROMAMBA_NEW_PRERELEASE=false" >> $GITHUB_ENV
21+
#echo "MICROMAMBA_LATEST=false" >> $GITHUB_ENV
22+
23+
#- name: Fake GitHub release
24+
#uses: softprops/action-gh-release@v2.2.0
25+
#if: env.MICROMAMBA_NEW_VERSION == 'true'
26+
#with:
27+
#name: Fake release
28+
## TODO use a PAT with write rights instead?
29+
#token: ${{ secrets.GITHUB_TOKEN }}
30+
## Set 'draft' to true for testing
31+
#draft: true
32+
#prerelease: ${{ env.MICROMAMBA_NEW_PRERELEASE == 'true' }}
33+
#make_latest: ${{ env.MICROMAMBA_LATEST }}
34+
#body: |
35+
#Fake release for micromamba
36+
#tag_name: ${{ env.MICROMAMBA_VERSION }}
37+
#files: |
38+
#releases/*
39+
## TODO cleanup/remove the draft releases (once/twice a week?)

0 commit comments

Comments
 (0)