16
.github/workflows/build-and-test.yml
vendored
Normal file
16
.github/workflows/build-and-test.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: build-and-test
|
||||
|
||||
ono: [pull_request, push] # TODO remove "push". Add it just for debugging
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
users: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Build Docker image
|
||||
users: docker/build-push-action@v1
|
||||
with:
|
||||
push: false
|
||||
35
.github/workflows/release.yml
vendored
Normal file
35
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Create draft release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create draft release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build project (dummy)
|
||||
run: zip my-artifact README.md # TODO - actually create all the binaries, artifacts etc
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: Please add your release note here
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
||||
- name: Upload binaries
|
||||
id: upload_binaries
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./my-artifact.zip
|
||||
asset_name: my-artifact.zip
|
||||
asset_content_type: application/zip
|
||||
Reference in New Issue
Block a user