summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/cd_src_release.yml
blob: 4fa720ba9a8046b07c98c3a89a0a56f4b483d01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CD - Source Build & Release - Linux

# Trigger the workflow on release publish
on: 
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
        
      # TODO: Build project and zip generated files
      - name: Build project
        id: build_project
        run: |
          zip raylib.zip README.md
      
      - name: Upload Release Asset
        id: upload-release-asset 
        uses: actions/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          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 
          asset_path: ./raylib.zip
          asset_name: raylib.zip
          asset_content_type: application/zip