-
Notifications
You must be signed in to change notification settings - Fork 149
85 lines (68 loc) · 2.03 KB
/
faketag.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Fake Application Release
# This is a simplified copy of tag.yml, only there for testing during PR.
# It does not create any release or upload any assets: publishing steps are replaced
# by a call to `ls` showing which assets are available.
on:
pull_request:
jobs:
build_release_assets:
uses: ./.github/workflows/build_release_assets.yml
secrets: inherit
push_to_pypi:
needs: build_release_assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Download packages
uses: actions/download-artifact@v4
with:
name: packages
- name: List downloaded artifacts
run: tree dist packages
release:
runs-on: ubuntu-latest
needs: build_release_assets
continue-on-error: true
# This is required for `gh release create` to work
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Read info
id: tags
shell: bash
run: |
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Download packages
uses: actions/download-artifact@v4
with:
name: packages
- name: Download standalone binaries
uses: actions/download-artifact@v4
with:
pattern: standalone-binaries-*
path: standalone-binaries
merge-multiple: true
- name: List downloaded artifacts
run: tree packages dist standalone-binaries
push_to_cloudsmith:
needs: build_release_assets
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download packages
uses: actions/download-artifact@v4
with:
name: packages
- name: Install Cloudsmith CLI
run: pip install cloudsmith-cli
- name: List downloaded artifacts
run: tree packages dist