Skip to content

Commit

Permalink
merge(github-action): Merge pull request #67 from genshen/ci-create-r…
Browse files Browse the repository at this point in the history
…elease

create Release via github-action and bump building environment version
  • Loading branch information
genshen committed Jul 31, 2023
2 parents e7b1e7e + ffe3119 commit 8a095c0
Show file tree
Hide file tree
Showing 3 changed files with 5,084 additions and 6,468 deletions.
43 changes: 35 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.17.0'

- name: Set up Go 1.18
uses: actions/setup-go@v2
- name: Set up Go 1.20
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: '1.20'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build static status page
run: cd status-web && yarn && yarn build && cd ../
Expand All @@ -31,4 +31,31 @@ jobs:
run: cd cmd/server && statik --src=../../status-web/build/ && cd ../../

- name: Build
run: go build -v .
run: make
- uses: actions/upload-artifact@v3
with:
name: build-artifact
path: wssocks-*

release:
name: On Release
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
with:
name: build-artifact
# - run: ls -R

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
wssocks-linux-amd64
wssocks-linux-arm64
wssocks-darwin-amd64
wssocks-darwin-arm64
wssocks-windows-amd64.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion status-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-copy-to-clipboard": "^5.0.3",
"react-dom": "^17.0.1",
"react-grid-system": "^7.1.1",
"react-scripts": "4.0.1",
"react-scripts": "5.0.1",
"typescript": "^4.0.3",
"web-vitals": "^0.2.4",
"workbox-background-sync": "^5.1.3",
Expand Down
Loading

0 comments on commit 8a095c0

Please sign in to comment.