From b760c589cb16e03e9c3a48448cebdf4fe75e4dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Sat, 21 Mar 2020 19:51:52 +0100 Subject: [PATCH] Adding Github Actions --- .github/FUNDING.yml | 1 + .github/ISSUE_TEMPLATE/bug_report.md | 42 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 19 ++++++++++ .github/workflows/build.yml | 20 +++++++++++ .github/workflows/release.yml | 30 ++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0c7f06d --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: [RomRider] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..d2ca63d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,42 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' +--- + + + +**Checklist:** + +- [ ] I updated to the latest version available +- [ ] I cleared the cache of my browser + +**Release with the issue:** + +**Last working release (if known):** + +**Browser and Operating System:** + + + +**Description of problem:** + + + +**Javascript errors shown in the web inspector (if applicable):** + +``` + +``` + +**Additional information:** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..22b00af --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,19 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: feature request +assignees: '' +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a33fe16 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: "Build" + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Test build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Build + run: | + npm install + npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0916666 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + release: + types: [published] + +jobs: + release: + name: Prepare release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + # Build + - name: Build the file + run: | + cd /home/runner/work/decluttering-card/decluttering-card + npm install + npm run build + + # Upload build file to the releas as an asset. + - name: Upload zip to release + uses: svenstaro/upload-release-action@v1-release + + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: /home/runner/work/decluttering-card/decluttering-card/dist/decluttering-card.js + asset_name: decluttering-card.js + tag: ${{ github.ref }} + overwrite: true