Skip to content

Commit

Permalink
gh action for backport relase
Browse files Browse the repository at this point in the history
  • Loading branch information
witmicko committed Nov 29, 2023
1 parent a41c68c commit a436332
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish-gh-pages-backport.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Backport GitHub Pages
name: Publish Backport GitHub Pages

on:
workflow_dispatch:
Expand All @@ -8,7 +8,6 @@ env:
VERSIONS: v1.0.0,v1.1.0,v1.2.1,v1.2.2
jobs:
publish-to-gh-pages:

name: Publish to GitHub Pages
runs-on: ubuntu-latest
permissions:
Expand All @@ -32,17 +31,17 @@ jobs:
- name: Checkout gh-pages
uses: actions/checkout@v3
with:
ref: "gh-pages"
path: "gh-pages"
ref: 'gh-pages'
path: 'gh-pages'

- name: prep for pr
run: |
IFS=',' read -ra VERSION_ARRAY <<< ${{ env.VERSIONS }}
for version in "${VERSION_ARRAY[@]}"; do
rm -rf "gh-pages/${version}"/*
cp -r dist/* "gh-pages/${version}/"
done
done
- name: Commit files
run: |
cd gh-pages
Expand Down

0 comments on commit a436332

Please sign in to comment.