Skip to content

Commit

Permalink
Merge pull request #35 from theopensystemslab/dp/fix-publish-action
Browse files Browse the repository at this point in the history
fix: Publish action
  • Loading branch information
DafyddLlyr authored Sep 20, 2023
2 parents fb183bd + a05831a commit af0fcff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,20 @@ jobs:
if: steps.version_check.outputs.changed == 'true'
run: pnpm install

- name: Checkout Dist Branch
if: steps.version_check.outputs.changed == 'true'
run: |
git fetch origin dist
git checkout -b dist origin/dist
- name: Build and Move Files
if: steps.version_check.outputs.changed == 'true'
run: |
VERSION=v${{steps.version_check.outputs.version}} pnpm build
mkdir -p "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}"
mv schema/* "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}"
mv types/* "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/types"
mv examples/*.json "$GITHUB_WORKSPACE/v${{ steps.version_check.outputs.version }}/examples"
- name: Checkout Dist Branch
if: steps.version_check.outputs.changed == 'true'
run: |
git fetch origin dist
git checkout -b dist origin/dist
- name: Commit and Push Changes
if: steps.version_check.outputs.changed == 'true'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "digital-planning-data-schemas",
"version": "0.0.1",
"version": "0.0.2",
"description": "Digital Planning Schemas",
"main": "schema/schema.json",
"scripts": {
Expand Down

0 comments on commit af0fcff

Please sign in to comment.