Skip to content

Commit

Permalink
Convert travis build to .github workflow build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanVanAtta committed Mar 8, 2021
1 parent 74ee46c commit be3ddc3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis/zip_assets → .build/zip_assets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -eu
set -eux
(cd game_headed_assets || exit 1; zip -r game_headed_assets.zip -- *)

mkdir -p artifacts/
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/zip-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Post zipped game-headed assets to github releases
on:
push:
branches: [master]
jobs:
build:
name: zip and upload assets
runs-on: Ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: set build version variables
run: |
BUILD_NUMBER=$((${{ github.run_number }} + 40))
echo "version=$BUILD_NUMBER" | tee -a $GITHUB_ENV
- name: zip game-headed assets
run: .build/zip_assets
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
artifacts: artifacts/*
tag: ${{ env.version }}
name: ${{ env.version }}
prerelease: false
commit: master
token: ${{ secrets.GITHUB_TOKEN }}

14 changes: 0 additions & 14 deletions .travis/push_tag

This file was deleted.

File renamed without changes.

0 comments on commit be3ddc3

Please sign in to comment.