Skip to content

Commit

Permalink
create a release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 2, 2022
1 parent 76b70cc commit be95b33
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/Zip-it.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit be95b33

Please sign in to comment.