-
Notifications
You must be signed in to change notification settings - Fork 54
36 lines (32 loc) · 1.31 KB
/
deploy-tag.yml
File metadata and controls
36 lines (32 loc) · 1.31 KB
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Deploy Tag
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
required: true
type: string
description: The version number of the release
concurrency: WordPress.org
permissions: {}
jobs:
deploy:
name: Deploy Tag
if: github.event_name == 'workflow_dispatch' || github.event.release.prerelease == false
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-deploy-tag.yml@667f50aeb549afa5a5cf0137a21a08de1bc983f5 # 2.9.3
permissions:
contents: write # Required to push the new branch
issues: write # Required for write access to milestones.
pull-requests: write # Required to create the pull request
attestations: write # Required to store the build provenance attestation.
id-token: write # Required for creating an OIDC token for build provenance attestation.
with:
deploy: ${{ github.event_name != 'workflow_dispatch' }}
plugin: user-switching
readme: readme.txt
version: ${{ github.event_name != 'workflow_dispatch' && github.event.release.tag_name || github.event.inputs.version }}
username: johnbillion
secrets:
WPORG_SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}