Skip to content

Commit

Permalink
Move release building from Travis to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Feb 16, 2022
1 parent b421064 commit 8577d89
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create Release

on:
push:
tags:
- 'v*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Composer
uses: php-actions/composer@v6
- name: build
run: |
./build.sh
- uses: ncipollo/release-action@v1
with:
artifacts: "release.zip"
token: ${{ secrets.GITHUB_TOKEN }}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

zip -r release.zip . -x *.git* -x build.sh

0 comments on commit 8577d89

Please sign in to comment.