raylib/.github/workflows/cd_src_release.yml

31 lines
1.0 KiB
YAML
Raw Normal View History

2020-01-10 01:51:47 +03:00
name: CD - Source Build & Release - Linux
2020-01-10 15:04:48 +03:00
# Trigger the workflow on release publish
2020-01-10 14:04:16 +03:00
on:
release:
2020-01-10 15:04:48 +03:00
types: [published]
2020-01-10 01:45:41 +03:00
jobs:
2020-01-10 15:05:19 +03:00
build:
2020-01-10 01:45:41 +03:00
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
2020-01-10 14:04:16 +03:00
# TODO: Build project and zip generated files
- name: Build project
2020-01-10 14:38:53 +03:00
id: build_project
2020-01-10 01:45:41 +03:00
run: |
2020-01-10 13:29:08 +03:00
zip raylib.zip README.md
2020-01-10 14:04:16 +03:00
2020-01-10 01:45:41 +03:00
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
2020-01-10 14:38:53 +03:00
upload_url: ${{ github.event.release.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
2020-01-10 13:29:08 +03:00
asset_path: ./raylib.zip
asset_name: raylib.zip
2020-01-10 01:45:41 +03:00
asset_content_type: application/zip