Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create Release via github-action and bump building environment version #67

Merged
merged 3 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading