Repository navigation
65 lines (51 loc) · 1.59 KB
/
Copy pathrelease.yml
File metadata and controls
65 lines (51 loc) · 1.59 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- '*.*.*'
env:
PLUGIN_SLUG: wp-feature-notifications
permissions:
contents: write
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/node
- name: Build package
shell: bash
run: npm run build --if-present
- name: Create artifacts
shell: bash
run: npm run plugin-zip
- name: Release
uses: softprops/action-gh-release@v1
with:
name: github.ref
files: ${{ env.PLUGIN_SLUG }}.zip
fail_on_unmatched_files: true
target_commitish: trunk
generate_release_notes: true
draft: true
build-docs:
name: Deploy documentation to GitHub Pages
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/node
- name: Build Storybook
shell: bash
run: npm run build:storybook
- name: Deploy
uses: peaceiris/actions-gh-pages@64b46b4226a4a12da2239ba3ea5aa73e3163c75b # v3.9.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true