Created
March 25, 2022 14:49
-
-
Save hauzlife/e119c154326d98db95f4457dc2217ac1 to your computer and use it in GitHub Desktop.
Esteira para Angular e Github Pages (gh-pages)
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
web-deploy: | |
name: 🎉 Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pegando o ultimo codigo... | |
uses: actions/checkout@v2 | |
- name: Preparando o Node... | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.14.0' | |
- name: Construindo... | |
run: | | |
npm install | |
- name: Verificando o que mudou... | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
output-file: 'false' | |
- name: Criando uma release... | |
uses: actions/create-release@v1 | |
if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
release_name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
- name: Enviando conforme o deploy do package.json | |
run: | | |
npm run deploy --no-silent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment