From be95b33fdbff00601b890a0816051c5c1e51f9ed Mon Sep 17 00:00:00 2001 From: Rahammetoela Toekiman Date: Fri, 1 Apr 2022 23:42:38 -0300 Subject: [PATCH] create a release action --- .github/workflows/Zip-it.yml | 42 ++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/Zip-it.yml diff --git a/.github/workflows/Zip-it.yml b/.github/workflows/Zip-it.yml new file mode 100644 index 0000000..00fa7cc --- /dev/null +++ b/.github/workflows/Zip-it.yml @@ -0,0 +1,42 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the bash branch + push: + if: startsWith(github.ref, 'refs/tags') + branches: [ master ] + tags: [ '*' ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - name: checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + + # Runs a set of commands using the runners shell + - name: zip it + run: zip -r sshmount.zip * + + - name: setup release + if: startsWith(github.ref, 'refs/tags') + uses: spenserblack/actions-tag-to-release@master + + - name: Make release + uses: softprops/action-gh-release@v1 + with: + files: sshmount.zip diff --git a/README.md b/README.md index c0ebc79..934e4e5 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ it makes it possible to run `sshmount hostname` to mount a remote directory on a # Install - Download the files below -[![download](https://github.com/Fuseteam/linus-proof/blob/main/images/download.png)](https://github.com/Fuseteam/sshmount/archive/refs/heads/master.zip) +[![download](https://github.com/Fuseteam/linus-proof/blob/main/images/download.png)](https://github.com/Fuseteam/sshmount/releases/latest/sshmount.zip) - extract the files - open the extract folders - right click on an empty area and click "open in terminal"