forked from containers/bubblewrap
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
544a014
commit 559a725
Showing
2 changed files
with
59 additions
and
167 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: default | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compile and extract the artifact from docker container | ||
run: | | ||
mkdir -p dist | ||
docker build -t alpine:bwrap . | ||
docker run --rm -v $(pwd):/workdir alpine:bwrap cp /bubblewrap/build/bwrap /workdir/dist/bwrap | ||
- name: Set permissions for dist directory | ||
run: | | ||
sudo chown -R "$(id -u)":"$(id -g)" dist/ | ||
sudo chmod -R 766 dist/ | ||
- name: Upload artifact to release | ||
uses: actions/[email protected] | ||
with: | ||
name: bwrap | ||
path: 'dist' | ||
|
||
- name: Compute Short SHA | ||
id: ssha | ||
run: | | ||
echo "ssha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
outputs: | ||
ssha: ${{ steps.ssha.outputs.ssha }} | ||
|
||
|
||
release: | ||
permissions: write-all | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: bwrap | ||
|
||
- name: release | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
title: Continuous ${{ needs.build.outputs.ssha }} | ||
automatic_release_tag: ${{ needs.build.outputs.ssha }} | ||
prerelease: false | ||
draft: false | ||
files: | | ||
bwrap | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} |