Skip to content

Commit 33dc0d1

Browse files
committed
Update GitHub Actions workflows for improved configuration and clarity
- Adjusted the TEST_CODEBUNDLE_PATH in build-push.yaml to match the Dockerfile's WORKDIR for consistency. - Modified pypi.yaml to trigger publishing only on GitHub Releases, enhancing control over package deployment. - Remove legacy scoring workflows
1 parent f5afb41 commit 33dc0d1

File tree

4 files changed

+11
-130
lines changed

4 files changed

+11
-130
lines changed

.github/workflows/build-push.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
workflow_dispatch:
88

99
env:
10-
TEST_CODEBUNDLE_PATH: /app/codecollection/codebundles/curl-http-ok/sli.robot
10+
# Must match Dockerfile: WORKDIR is $RUNWHEN_HOME/codecollection (/home/runwhen/codecollection)
11+
TEST_CODEBUNDLE_PATH: /home/runwhen/codecollection/codebundles/curl-http-ok/sli.robot
1112
CURL_URL: http://localhost:3000/curl-http-ok/sli-log.html
1213
#TODO add feature branch builds
1314

.github/workflows/pypi.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Publish Pypi Package
22

3+
# Publish only when a GitHub Release is published (see Release (Date-based) workflow),
4+
# not on every push to main. Use workflow_dispatch for ad-hoc publishes.
35
on:
4-
push:
5-
branches:
6-
- main
7-
paths:
8-
- 'libraries/**'
9-
- '.github/workflows/pypi.yaml'
6+
release:
7+
types: [published]
108
workflow_dispatch:
119

10+
permissions:
11+
contents: write
12+
1213
jobs:
1314
publish-pypi:
1415
runs-on: ubuntu-latest
@@ -17,6 +18,8 @@ jobs:
1718
uses: actions/checkout@v4
1819
with:
1920
fetch-depth: 0
21+
# On release: checkout the release tag; on workflow_dispatch: branch/ref you selected
22+
ref: ${{ github.event_name == 'release' && github.event.release.tag_name || github.ref }}
2023

2124
- name: Publish to PyPI
2225
uses: runwhen-contrib/github-actions/publish-pypi@main

.github/workflows/score_manual.yaml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/score_pr.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)