-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (35 loc) · 961 Bytes
/
publish.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
name: Publish Releases
on:
workflow_dispatch:
inputs:
bump:
type: choice
required: true
description: What kind of bump
options:
- major
- minor
- patch
pull_request:
types:
- closed
permissions:
contents: write
pull-requests: write
jobs:
publish:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || (startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.merged)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: pip install PyGithub semver
- run: make publish
env:
DOCKER_IMAGE: ghcr.io/juliaregistries/tagbot
DOCKER_USERNAME: christopher-dG
DOCKER_PASSWORD: ${{ secrets.GHCR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.SSH_KEY }}