Skip to content

Commit

Permalink
Testing automated Content Delivery as tar files
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerb9 committed Mar 13, 2024
1 parent 52217ea commit 5f4baac
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: release

on:
push:
tags:
- '*'

jobs:
build_release:
name: build_release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: make
run: make
- name: version
run: echo "::set-output name=version::$(echo 0.0)"
id: version
- name: build artifacts
run: make artifacts
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: true
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
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: ./linux-amd64.tar.gz
asset_name: linux-amd64.tar.gz
asset_content_type: application/gzip
- name: upload generated C files
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./cfiles.tar.gz
asset_name: cfiles.tar.gz
asset_content_type: application/gzip

0 comments on commit 5f4baac

Please sign in to comment.