Skip to content

Commit

Permalink
change release structure
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuo committed May 15, 2023
1 parent 4dc4352 commit 0499369
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Deploy to gh pages (1)

on:
push:
branches: ['10.0-wf']
# branches: ['release/*']
release:
types: [published]

jobs:
deploy:
publish:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.*
cache: 'yarn'
cache-dependency-path: './yarn.lock'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn build
- name: Set remote git repository
run: |
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{github.repository}}

- name: Version
run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version

- name: Publish
run: yarn publish
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Deploy
run: yarn gh-pages --dist "./build" --dest "${GITHUB_REF##*/}/ui"
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"author": "Apryse Software Inc.",
"version": "10.0.1",
"description": "WebViewer UI built in React",
"main": "src/index.js",
"files": [
"./build"
],
"scripts": {
"start": "npx babel-node ./dev-server.js",
"download-webviewer": "npx @pdftron/webviewer-downloader --core-only --path ./lib",
Expand Down

0 comments on commit 0499369

Please sign in to comment.