Merge pull request #787 from piraces/dependabot/npm_and_yarn/11ty/ele… #758
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish main artifact | |
| on: | |
| push: | |
| branches: [ main ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [scheduled_post] | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read .nvmrc | |
| id: node_version | |
| run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ steps.node_version.outputs.NODE_VERSION }} | |
| - run: npm install | |
| - run: npm run build | |
| - name: Upload deployment artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: deployment | |
| path: ./_site | |