Skip to content

Commit

Permalink
Auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
v3rm0n committed Feb 3, 2024
1 parent 51df925 commit bdd9ddf
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pub"
directory: "/"
schedule:
interval: "weekly"
15 changes: 13 additions & 2 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,30 @@ on:
- main
jobs:
build:
name: Build for {{ fromJSON(matrix.build).os }}
runs-on: ${{fromJSON(matrix.build).os}}
strategy:
matrix:
build: ['{"os": "windows-latest", "exe": "dage-windows-amd64.exe"}', '{"os": "ubuntu-latest", "exe": "dage-linux-amd64"}', '{"os": "macos-latest", "exe": "dage-darwin-amd64"}']
build: [ '{"os": "windows-latest", "exe": "dage-windows-amd64.exe"}', '{"os": "ubuntu-latest", "exe": "dage-linux-amd64"}', '{"os": "macos-latest", "exe": "dage-darwin-amd64"}' ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.3
- name: Install dependencies
run: dart pub get
- name: Compile
run: dart compile exe bin/dage.dart -o bin/${{fromJSON(matrix.build).exe}}
- name: Upload artifact
- name: Upload artifact for {{ fromJSON(matrix.build).os }}
uses: actions/upload-artifact@v3
with:
name: ${{fromJSON(matrix.build).exe}}
path: bin/${{fromJSON(matrix.build).exe}}
check:
name: Mark artifacts uploaded
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: LouisBrunner/checks-action@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Artifacts uploaded
conclusion: success
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Wait for artifacts
uses: lewagon/wait-on-check-action@v1.3.3
with:
ref: ${{ github.sha }}
check-name: 'Artifacts uploaded'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: dage-*

0 comments on commit bdd9ddf

Please sign in to comment.