Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
climatehack getting started zip
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdewar committed Jan 28, 2022
1 parent 6cbf827 commit 27c9b08
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: uttt_getting_started.zip
release-climatehack-getting-started:
name: release-example-agent
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: zip
shell: bash
run: |
cd competitions/climatehack
sh ./build_getting_started_zip.sh
mv climatehack_getting_started.zip ../../
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: climatehack_getting_started.zip

build-release-cli:
name: build-release-cli
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions competitions/climatehack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./climatehack_getting_started.zip
7 changes: 7 additions & 0 deletions competitions/climatehack/build_getting_started_zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e
cd "$(dirname "$0")"
rm climatehack_getting_started.zip || echo 'no previous zip file'

zip -r climatehack_getting_started.zip climatehack_getting_started

0 comments on commit 27c9b08

Please sign in to comment.