Skip to content

Commit

Permalink
fix: set wd
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelhenke committed Aug 26, 2022
1 parent 1448700 commit 57cc6c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@ concurrency:
group: 'pages'
cancel-in-progress: true

defaults:
run:
working-directory: ./docs
env:
WORKING_DIRECTORY: ./docs

jobs:
# Build job
build:
name: Build jekyll site
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -41,6 +37,7 @@ jobs:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
working-directory: ${{ env.WORKING_DIRECTORY }}

- name: Setup Pages
id: pages
Expand All @@ -49,12 +46,16 @@ jobs:
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
working-directory: ${{ env.WORKING_DIRECTORY }}
env:
JEKYLL_ENV: production

- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1
with:
path: ${{ env.WORKING_DIRECTORY }}/_site
retention-days: 1

# Deployment job
deploy:
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ jobs:
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true

publish:
if: ${{ needs.create-release.outputs.release_created }}
needs: create-release
name: Publish to npm
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/nuxt-envalid

steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}

- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
Expand All @@ -41,16 +47,6 @@ jobs:
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
publish:
if: ${{ needs.create-release.outputs.release_created }}
needs: create-release
name: Publish to npm
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/nuxt-envalid

steps:
- name: Setup node env 🏗
id: setup
uses: actions/setup-node@v3
Expand Down

0 comments on commit 57cc6c3

Please sign in to comment.