From c6bae83c5ca311bb9ea0e483c05ce2298a920029 Mon Sep 17 00:00:00 2001 From: jneilliii Date: Sat, 16 May 2020 14:50:00 -0400 Subject: [PATCH] 0.1.1 added github action workflows added stalebot --- .github/stale.yml | 17 ++++++++++++++++ .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/stale.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..48629b1 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 14 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 +# Issues with these labels will never be considered stale +exemptLabels: + - enhancement + - bug + - solved +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + activity in 14 days. It will be closed if no further activity occurs in 7 days. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fe890c3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - '[0-9]+.[0-9]+.[0-9]+' # Push events to matching tag 0.0.0 + +name: Upload Release Asset + +jobs: + build: + name: Upload Release Asset + runs-on: ubuntu-latest + steps: + - name: Get the version + id: tag_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Checkout code + uses: actions/checkout@v2 + - name: Build project # This would actually build your project, using zip for an example artifact + run: zip -r ${{ steps.tag_version.outputs.VERSION }}.zip . -x ".git/*" ".github/*" ".editorconfig" ".gitignore" + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: true + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./${{ steps.tag_version.outputs.VERSION }}.zip + asset_name: ${{ steps.tag_version.outputs.VERSION }}.zip + asset_content_type: application/zip