Skip to content

Commit

Permalink
better versionning and CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
wsw70 committed Jan 14, 2023
1 parent 5b9fc57 commit 3823bdc
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 61 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/dev.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: create release on tag

on:
push:
tags:
- "v*"

jobs:
build_release:
name: build_release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
- run: env GOOS=linux GOARCH=amd64 go build -o syncthing-map-linux-amd64 .
- run: env GOOS=windows GOARCH=amd64 go build -o syncthing-map-windows-amd64.exe .

- name: release
uses: softprops/action-gh-release@v1
with:
files: |
syncthing-map-linux-amd64
syncthing-map-windows-amd64.exe
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/stable.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A utility to map syncthing devices and shared folders.

The binaries are automatically released at each update of the stable and development version. Use the stable one except if you want to test some development updates.
The binaries are automatically released at each update of the stable and development (has `dev` in the version name) version. Use the stable one except if you want to test some development updates.

## Usage

Expand Down

0 comments on commit 3823bdc

Please sign in to comment.