General fix and consistency changes (#428)

This commit is contained in:
Krishan 2022-03-23 19:40:39 +05:30 committed by GitHub
parent a32ffdf6d4
commit 05eaa8d3e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 13 deletions

View file

@ -1,5 +1,4 @@
name: 🐞 Bug Report name: 🐞 Bug Report
title: '[bug] '
description: Report a bug description: Report a bug
labels: 'type: bug' labels: 'type: bug'

View file

@ -1,5 +1,4 @@
name: 💡 Feature Request name: 💡 Feature Request
title: '[feat] '
description: Suggest an idea description: Suggest an idea
labels: 'type: feature' labels: 'type: feature'

View file

@ -10,7 +10,7 @@ jobs:
env: env:
PR_NUMBER: ${{github.event.number}} PR_NUMBER: ${{github.event.number}}
steps: steps:
- name: Check out the repo - name: Checkout repository
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
- name: Build app - name: Build app
run: npm ci && npm run build run: npm ci && npm run build

View file

@ -13,7 +13,7 @@ jobs:
# There's a 'download artifact' action but it hasn't been updated for the # 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) # workflow_run action (https://github.com/actions/download-artifact/issues/60)
# so instead we get this mess: # so instead we get this mess:
- name: 'Download artifact' - name: Download artifact
uses: actions/github-script@v6.0.0 uses: actions/github-script@v6.0.0
with: with:
script: | script: |
@ -46,7 +46,7 @@ jobs:
fs.writeFileSync('${{github.workspace}}/pr.json.zip', Buffer.from(download.data)); fs.writeFileSync('${{github.workspace}}/pr.json.zip', Buffer.from(download.data));
- name: Extract Artifacts - name: Extract Artifacts
run: unzip -d dist previewbuild.zip && rm previewbuild.zip && unzip pr.json.zip && rm pr.json.zip 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 id: readctx
uses: actions/github-script@v6.0.0 uses: actions/github-script@v6.0.0
with: with:

View file

@ -6,13 +6,15 @@ on:
- dev - dev
jobs: jobs:
deploy: deploy-to-netlify:
name: 'Deploy' name: 'Deploy'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3.0.0 - name: Checkout repository
- uses: jsmrcaga/action-netlify-deploy@v1.7.2 uses: actions/checkout@v3.0.0
- name: Build and deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v1.7.2
with: with:
install_command: "npm ci" install_command: "npm ci"
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

View file

@ -9,7 +9,7 @@ jobs:
name: 'Deploy to Netlify' name: 'Deploy to Netlify'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the repo - name: Checkout repository
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
- name: Build and deploy to Netlify - name: Build and deploy to Netlify
uses: jsmrcaga/action-netlify-deploy@v1.7.2 uses: jsmrcaga/action-netlify-deploy@v1.7.2
@ -26,7 +26,7 @@ jobs:
- name: Create tar.gz - name: Create tar.gz
run: tar -czvf cinny-${{ steps.vars.outputs.tag }}.tar.gz dist run: tar -czvf cinny-${{ steps.vars.outputs.tag }}.tar.gz dist
- name: Upload tagged release - name: Upload tagged release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v0.1.14
with: with:
files: | files: |
cinny-${{ steps.vars.outputs.tag }}.tar.gz cinny-${{ steps.vars.outputs.tag }}.tar.gz
@ -35,7 +35,7 @@ jobs:
name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the repo - name: Checkout repository
uses: actions/checkout@v3.0.0 uses: actions/checkout@v3.0.0
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v1.14.1 uses: docker/login-action@v1.14.1

View file

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal