-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from DudeBro249/dev
feat: docrunner release workflows
- Loading branch information
Showing
424 changed files
with
140,333 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: Compile Dart Code | ||
|
||
on: | ||
push: | ||
branches: [ stable ] | ||
|
||
jobs: | ||
build: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macOS-10.15] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Note: This workflow uses the latest stable version of the Dart SDK. | ||
# You can specify other versions if desired, see documentation here: | ||
# https://github.com/dart-lang/setup-dart/blob/main/README.md | ||
# - uses: dart-lang/setup-dart@v1 | ||
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 | ||
|
||
- name: Install dependencies | ||
run: dart pub get | ||
|
||
- name: Build dart files | ||
run: dart run build_runner build | ||
|
||
- name: Compile code | ||
run: dart compile exe bin/main.dart -o bin/docrunner-${{ matrix.os }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./bin/docrunner-${{ matrix.os }}* | ||
|
||
release: | ||
name: Create a github release | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/download-artifact@v2 | ||
|
||
- name: Get version | ||
uses: KJ002/read-yaml@v1.4 | ||
id: version | ||
with: | ||
file: ./pubspec.yaml | ||
key-path: '["version"]' | ||
|
||
- name: Get name | ||
uses: KJ002/read-yaml@v1.4 | ||
id: name | ||
with: | ||
file: ./pubspec.yaml | ||
key-path: '["name"]' | ||
|
||
- name: Get changelog | ||
uses: ./actions/changelog-action | ||
id: changelog | ||
with: | ||
file: './CHANGELOG.md' | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: ${{ steps.name.outputs.data }} | ||
tag_name: ${{ steps.version.outputs.data }} | ||
body: ${{ steps.changelog.outputs.data }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload linux artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./artifact/docrunner-ubuntu-20.04 | ||
asset_name: docrunner-linux | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload macOS artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./artifact/docrunner-macOS-10.15 | ||
asset_name: docrunner-macOS | ||
asset_content_type: application/octet-stream | ||
|
||
- name: Upload windows artifact | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./artifact/docrunner-windows-2019 | ||
asset_name: docrunner-windows.exe | ||
asset_content_type: application/x-msdownload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Read yaml' | ||
description: 'Read data from a yaml file' | ||
|
||
inputs: | ||
file: | ||
description: 'CHANGELOG file to read from.' | ||
required: true | ||
|
||
output: | ||
data: | ||
description: 'Most recent changelog.' | ||
|
||
runs: | ||
using: 'node12' | ||
main: 'dist/index.js' |
Oops, something went wrong.