name: 🐞 Bug Report
-title: '[bug] '
description: Report a bug
labels: 'type: bug'
name: 💡 Feature Request
-title: '[feat] '
description: Suggest an idea
labels: 'type: feature'
env:
PR_NUMBER: ${{github.event.number}}
steps:
- - name: Check out the repo
+ - name: Checkout repository
uses: actions/checkout@v3.0.0
- name: Build app
run: npm ci && npm run build
# There's a 'download artifact' action but it hasn't been updated for the
# workflow_run action (https://github.com/actions/download-artifact/issues/60)
# so instead we get this mess:
- - name: 'Download artifact'
+ - name: Download artifact
uses: actions/github-script@v6.0.0
with:
script: |
fs.writeFileSync('${{github.workspace}}/pr.json.zip', Buffer.from(download.data));
- name: Extract Artifacts
run: unzip -d dist previewbuild.zip && rm previewbuild.zip && unzip pr.json.zip && rm pr.json.zip
- - name: 'Read PR Info'
+ - name: Read PR Info
id: readctx
uses: actions/github-script@v6.0.0
with:
- dev
jobs:
- deploy:
+ deploy-to-netlify:
name: 'Deploy'
runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3.0.0
- - uses: jsmrcaga/action-netlify-deploy@v1.7.2
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3.0.0
+ - name: Build and deploy to Netlify
+ uses: jsmrcaga/action-netlify-deploy@v1.7.2
with:
install_command: "npm ci"
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
name: 'Deploy to Netlify'
runs-on: ubuntu-latest
steps:
- - name: Check out the repo
+ - name: Checkout repository
uses: actions/checkout@v3.0.0
- name: Build and deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v1.7.2
- name: Create tar.gz
run: tar -czvf cinny-${{ steps.vars.outputs.tag }}.tar.gz dist
- name: Upload tagged release
- uses: softprops/action-gh-release@v1
+ uses: softprops/action-gh-release@v0.1.14
with:
files: |
cinny-${{ steps.vars.outputs.tag }}.tar.gz
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- - name: Check out the repo
+ - name: Checkout repository
uses: actions/checkout@v3.0.0
- name: Login to Docker Hub
uses: docker/login-action@v1.14.1
MIT License
-Copyright (c) 2021 Ajay Bura (ajbura) and other contributors
+Copyright (c) 2021 Ajay Bura (ajbura) and contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal