Skip to content

Commit

Permalink
Added github action to build ihp-new package
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Oct 28, 2021
1 parent e7a27cf commit 88b56ee
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ihp-new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build ihp-new Package
on:
push:
branches: 'master'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/51bcdc4cdaac48535dabf0ad4642a66774c609ed.tar.gz
- uses: cachix/cachix-action@v8
with:
name: digitallyinduced
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
- name: Build ihp-new Package
run: |
cd $GITHUB_WORKSPACE
nix-shell --run "cd ProjectGenerator; make tarball.tar.gz"
- name: Uploading ihp-new Package
run: aws s3 cp ./ProjectGenerator/tarball.tar.gz s3://${{ secrets.S3_BUCKET }}/ihp-new.tar.gz

0 comments on commit 88b56ee

Please sign in to comment.