diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index dec877e9..b6559716 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -120,7 +120,7 @@ jobs:
env:
COVERALLS: ${{ secrets.COVERALLS }}
- build-linux:
+ build:
needs: test
runs-on: ubuntu-latest
steps:
@@ -153,7 +153,7 @@ jobs:
env:
VERSION: ${{ env.VERSION }}
COMMIT: $GITHUB_SHA
- run: make build-linux
+ run: make build-linux build-mac build-win
- name: Upload Release
id: upload-release-asset
@@ -177,106 +177,14 @@ jobs:
build/statping-openbsd-amd64.tar.gz
build/statping-openbsd-arm.tar.gz
build/statping-openbsd-arm64.tar.gz
-
- build-mac:
- needs: test
- runs-on: macos-latest
- steps:
- - uses: actions/setup-go@v2
- with:
- go-version: '1.14.2'
- - uses: actions/checkout@v2
-
- - name: Setting ENV's
- run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
- shell: bash
-
- - name: Download Go mods
- if: steps.golangcache.outputs.cache-hit != 'true'
- run: |
- go mod download
- go mod verify
- make test-deps
-
- - name: Download Compiled Frontend (rice-box.go)
- uses: actions/download-artifact@v1
- with:
- name: static-rice-box
- path: ./source
-
- - name: Build Binaries
- env:
- VERSION: ${{ env.VERSION }}
- COMMIT: $GITHUB_SHA
- run: make build-mac
-
- - name: Upload Release
- id: upload-release-asset
- uses: softprops/action-gh-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- VERSION: ${{ env.VERSION }}
- with:
- tag_name: v${{ env.VERSION }}
- draft: false
- prerelease: false
- files: |
build/statping-darwin-386.tar.gz
build/statping-darwin-amd64.tar.gz
-
- build-windows:
- needs: test
- runs-on: windows-latest
- steps:
- - uses: actions/setup-go@v2
- with:
- go-version: '1.14.2'
- - uses: actions/checkout@v2
-
- - name: Setting ENV's
- run: |
- echo "::add-path::$(go env GOPATH)/bin"
- echo ::set-env name=VERSION::$(cat version.txt)
- shell: bash
-
- - name: Download Go mods
- if: steps.golangcache.outputs.cache-hit != 'true'
- run: |
- go mod download
- go mod verify
- make test-deps
-
- - name: Download Compiled Frontend (rice-box.go)
- uses: actions/download-artifact@v1
- with:
- name: static-rice-box
- path: ./source
-
- - name: Build Binaries
- env:
- VERSION: ${{ env.VERSION }}
- COMMIT: $GITHUB_SHA
- run: make build-windows
-
- - name: Upload Release
- id: upload-release-asset
- uses: softprops/action-gh-release@v1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- VERSION: ${{ env.VERSION }}
- with:
- tag_name: v${{ env.VERSION }}
- draft: false
- prerelease: false
- files: |
build/statping-windows-386.zip
build/statping-windows-amd64.zip
build/statping-windows-arm.zip
- post-release:
- needs: [build-linux, build-mac, build-windows]
+ docker-release:
+ needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Statping Repo
@@ -304,6 +212,17 @@ jobs:
dockerfile: Dockerfile
tags: "latest,v${{ env.VERSION }}"
+ sentry-release:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Statping Repo
+ uses: actions/checkout@v2
+
+ - name: Setting ENV's
+ run: echo ::set-env name=VERSION::$(cat version.txt)
+ shell: bash
+
- name: Sentry Backend Release
uses: tclindner/sentry-releases-action@v1.0.0
env:
@@ -326,12 +245,34 @@ jobs:
tagName: v${{ env.VERSION }}
environment: production
+ homebrew-release:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Statping Repo
+ uses: actions/checkout@v2
+
+ - name: Setting ENV's
+ run: echo ::set-env name=VERSION::$(cat version.txt)
+ shell: bash
+
- name: Update Homebrew Package
env:
VERSION: ${{ env.VERSION }}
TRAVIS_API: ${{ secrets.TRAVIS_API }}
run: make publish-homebrew
+ slack-update:
+ needs: build
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout Statping Repo
+ uses: actions/checkout@v2
+
+ - name: Setting ENV's
+ run: echo ::set-env name=VERSION::$(cat version.txt)
+ shell: bash
+
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2.0.0
env:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f3e4e16d..dbf2bed6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+# 0.90.30 (04-19-2020)
+- Attempt to fix Github Actions build process
+
# 0.90.29 (04-19-2020)
- Added HTTP Redirects for services
- Removed use of SASS environment variable, now finds path or sends error
diff --git a/Makefile b/Makefile
index adb8cf40..4fcc5591 100644
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,7 @@ build-linux:
do \
for os in $(OS);\
do \
- echo "Building $$VERSION $$os-$$arch"; \
+ echo "Building v$$VERSION $$os-$$arch"; \
mkdir -p releases/statping-$$os-$$arch/; \
GO111MODULE="on" GOOS=$$os GOARCH=$$arch go build -a -ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)" -o releases/statping-$$os-$$arch/statping ${PWD}/cmd || true; \
chmod +x releases/statping-$$os-$$arch/statping || true; \
@@ -172,7 +172,7 @@ build-mac:
export PWD=`pwd`
@for arch in $(ARCHS);\
do \
- echo "Building darwin-$$VERSION darwin-$$arch"; \
+ echo "Building v$$VERSION darwin-$$arch"; \
mkdir -p releases/statping-darwin-$$arch/; \
GO111MODULE="on" GOOS=darwin GOARCH=$$arch go build -a -ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)" -o releases/statping-darwin-$$arch/statping ${PWD}/cmd || true; \
chmod +x releases/statping-darwin-$$arch/statping || true; \
@@ -181,10 +181,11 @@ build-mac:
find ./releases/ -name "*.tar.gz" -type f -size +1M -exec mv "{}" build/ \;
build-win:
+ mkdir build || true
export PWD=`pwd`
@for arch in $(ARCHS);\
do \
- echo "Building windows-$$arch"; \
+ echo "Building v$$VERSION windows-$$arch"; \
mkdir -p releases/statping-windows-$$arch/; \
GO111MODULE="on" GOOS=windows GOARCH=$$arch go build -a -ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)" -o releases/statping-windows-$$arch/statping.exe ${PWD}/cmd || true; \
chmod +x releases/statping-windows-$$arch/statping.exe || true; \
diff --git a/README.md b/README.md
index fd6d955e..b2c41f72 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ An easy to use Status Page for your websites and applications. Statping will aut