Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy rules for github actions #472

Open
wants to merge 4 commits into
base: next
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Releases

on:
push:
branches:
- master
tags:
- '*'

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set Up Python 3.6
run: |
sudo apt-get update -qq
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update -qq
sudo apt-get install python3.6 -y
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.6 /usr/bin/python3
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo apt-get install -qq -y libsubunit-dev
# Runs a single command using the runners shell
- name: Bootstrap
run: |
script/bootstrap.sh

- name: Build
run: |
echo "n" | fab release:skip_tests=True

- uses: ncipollo/release-action@v1
with:
artifacts: "./release/openxc-vi-firmware-v*.*.*.zip"
token: ${{ secrets.GH_TOKEN }}