Skip to content

Commit

Permalink
ci(web components): publish web component script for release tags as …
Browse files Browse the repository at this point in the history
…well

note: might need an additional action to create the release branches used in publish_branch if they do not exist yet
  • Loading branch information
tkohr committed Aug 11, 2023
1 parent 37692ec commit 822879a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/webcomponents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
branches:
- main
tags:
- '*.*.*'
release:
types: [published]

Expand Down Expand Up @@ -54,10 +56,10 @@ jobs:
tag: ${{ github.ref }}
overwrite: true

- name: Publish web component to ${{ env.PUBLISH_BRANCH }} branch
- name: Publish web component to ${{ env.PUBLISH_BRANCH }}-${{ github.ref_name }} branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
publish_dir: ./wc-dist
publish_branch: ${{ env.PUBLISH_BRANCH }}
publish_branch: ${{ env.PUBLISH_BRANCH }}-${{ github.ref_name }}

0 comments on commit 822879a

Please sign in to comment.