generated from ImperialCollegeLondon/poetry_template_2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add publish workflow, and instructions in readme
- Loading branch information
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Test | ||
|
||
on: [push, pull_request, release] | ||
on: [push, pull_request, workflow_call] | ||
|
||
jobs: | ||
qa: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: [release] | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/ci.yml | ||
|
||
publish: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
# Uncomment the following steps to build a Docker image and publish to the GitHub container registry on release. Alternatively, can replace with other publising steps (ie. publishing to PyPI, deploying documentation etc.) | ||
# steps: | ||
# - name: Login to GitHub Container Registry | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Get image metadata | ||
# id: meta | ||
# uses: docker/metadata-action@v5 | ||
# with: | ||
# images: ghcr.io/${{ github.repository }} | ||
# - name: Build and push Docker image | ||
# uses: docker/build-push-action@v5 | ||
# with: | ||
# push: true | ||
# tags: ${{ steps.meta.outputs.tags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters