-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
27 additions
and
50 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 |
---|---|---|
@@ -1,69 +1,49 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
--- | ||
name: CI | ||
|
||
# Controls when the workflow will run | ||
# yamllint disable-line rule:truthy | ||
on: | ||
[push] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Runs a single command using the runners shell | ||
- name: Build | ||
run: sudo ./build.sh | ||
|
||
# Runs a set of commands using the runners shell | ||
- name: print sha256sum | ||
run: cat output/sha256 | ||
|
||
- name: Generate Tag | ||
id: tag | ||
run: | | ||
VER=$(egrep ^KERNEL_VERSION build.sh|cut -d= -f2) | ||
echo Version is $VER | ||
echo "::set-output name=tag::${VER}" | ||
- name: Upload iso artifact part 1 | ||
- name: Upload iso artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z01 | ||
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z01 | ||
|
||
- name: Upload iso artifact part 2 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z02 | ||
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z02 | ||
|
||
- name: Upload iso artifact part 3 | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.z03 | ||
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.z03 | ||
|
||
- name: Upload iso artifact final part | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: mbp-ubuntu-${{ steps.tag.outputs.tag }}.zip | ||
path: ${{ github.workspace }}/output/livecd-${{ steps.tag.outputs.tag }}-mbp.zip | ||
path: ${{ github.workspace }}/output/* | ||
|
||
- name: Instructions for putting it back together | ||
run: | | ||
echo Download all the artifacts, and put them in a folder without other files. Then run: | ||
echo 'unzip "*.z??.zip"' | ||
echo 'cat livecd-${{ steps.tag.outputs.tag }}-mbp.z?? > cd.zip' | ||
cat << EOF | ||
Download all the artifacts, and put them in a folder | ||
without other files. Then run:" | ||
unzip "*.z??.zip" | ||
cat livecd-${{ steps.tag.outputs.tag }}-mbp.z?? > cd.zip | ||
echo unzip cd.zip | ||
EOF | ||
- name: Release | ||
if: github.ref == 'refs/heads/master' | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ github.workspace }}/output/* | ||
tag_name: v${{ steps.tag.outputs.tag }} | ||
draft: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
output | ||
/.idea |
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