-
Notifications
You must be signed in to change notification settings - Fork 46
36 lines (29 loc) · 966 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
# Publishes changes from develop to master.
#
# * Triggers the CD workflow to publish the package if needed.
# * Documentation will be published on the official site.
name: Publish
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-22.04
permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
export-secrets-to-environment: false
- name: Check out master
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0 # Fetch all branches
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}
- name: Fast-forward master to develop
run: ./tools/release-master