Skip to content

Instantly share code, notes, and snippets.

@hauzlife
Created March 25, 2022 14:49
Show Gist options
  • Save hauzlife/e119c154326d98db95f4457dc2217ac1 to your computer and use it in GitHub Desktop.
Save hauzlife/e119c154326d98db95f4457dc2217ac1 to your computer and use it in GitHub Desktop.
Esteira para Angular e Github Pages (gh-pages)
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