Skip to content

Commit 4eb46ca

Browse files
committed
ci: test github release (1)
1 parent d82950b commit 4eb46ca

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
# This action will create a Release to GitHub Releases from an existing build artifact
3+
4+
### NOTE: All bash scripts inlined here because external scripts dont appear to
5+
### be available at runtime when you manually check out an action repo and
6+
### then call the action using a local path location, such as when a public
7+
### repo needs to use an action stored in a private action repo with auth.
8+
### It seems that the local path action invocation wraps the action inside a
9+
### container without providing access to other scripts in the action repo.
10+
11+
name: 'jitx-python-github-release'
12+
description: 'Release to GitHub Releases'
13+
#inputs:
14+
# run-publish:
15+
# description: 'Whether to publish the results. (true/false)'
16+
# required: true
17+
# default: false
18+
19+
runs:
20+
using: "composite"
21+
steps:
22+
23+
- name: Debug Dump GitHub context
24+
env:
25+
GITHUB_CONTEXT: ${{ toJson(github) }}
26+
run: echo "$GITHUB_CONTEXT"
27+
28+
- name: Debug list artifact files
29+
shell: bash
30+
run: |
31+
ls -l pybuild-work/dist/*.whl || true
32+
ls -l pybuild-work/dist/version || true
33+
ls -l pybuild-work/dist/*.tar.gz || true
34+
35+
36+
#- name: GitHub Release
37+
# if: github.ref_type == 'tag' && github.ref_name ...
38+
# uses: softprops/action-gh-release@v2
39+
# with:
40+
# files: |
41+
# pybuild-work/dist/*.whl
42+
# pybuild-work/dist/version
43+
# pybuild-work/dist/*.tar.gz

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ jobs:
6161
notify-slack: true
6262
slack-token: ${{ secrets.SLACK_TOKEN }}
6363
github-user: ${{ github.actor }}
64+
65+
- name: Release GitHub Releases
66+
uses: ./pybuild-work/.github/actions/release-github

0 commit comments

Comments
 (0)