Skip to content

Commit

Permalink
Release chores
Browse files Browse the repository at this point in the history
* Add release script
* Add live test to run weekly and on push
* Rename workflow for clarity
  • Loading branch information
safejulian committed Oct 18, 2024
1 parent ac29f9f commit 5dba3ad
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/workflows/live.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Makefile CI

on:
push:
branches: [ "main" ]
schedule:
- cron: "5 5 * * 6"

jobs:

build:
strategy:
fail-fast: false
matrix:
os: [ 'ubuntu-22.04', 'macos-latest' ]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Install dependencies and run test
run: make live
env:
GH_TOKEN: ${{ github.token }}
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
- uses: actions/upload-artifact@v4
with:
name: report-${{ matrix.os }}
path: WebGoat/statica.html
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ spec:
acceptance:
./acceptance.sh

.PHONY: test clean test.html spec acceptance
live:
./live.sh

.PHONY: test clean test.html spec acceptance live
13 changes: 13 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
version=$1

set -euo pipefail
brew update
gh release create v$version --generate-notes
brew bump-formula-pr --version $version statica -n

## brew tap simpsonjulian/
# brew audit --new --tap simpsonjulian/core --formula statica -v

# ensure correct tap is done
# brew bump-formula-pr will work fine

0 comments on commit 5dba3ad

Please sign in to comment.