mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Change CI from travis to GitHub Actions
This commit is contained in:
parent
4d8aee20c5
commit
957507d40e
29
.github/workflows/CI.yml
vendored
Normal file
29
.github/workflows/CI.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: CI
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the develop branch
|
||||
on:
|
||||
push:
|
||||
branches: [ develop ]
|
||||
pull_request:
|
||||
branches: [ develop ]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Use "Factorio Mod luacheck" from the marketplace
|
||||
- name: Factorio Mod luacheck
|
||||
uses: Roang-zero1/factorio-mod-luacheck@v1.1.0
|
||||
with:
|
||||
# URL to the luacheckrc configuration file to be used during checking.
|
||||
# Per https://github.com/Roang-zero1/factorio-mod-luacheck/issues/2 - an empty string will use the project's .luacheckrc
|
||||
luacheckrc_url: "" # optional, default is https://raw.githubusercontent.com/Nexela/Factorio-luacheckrc/0.17/.luacheckrc
|
@ -5,7 +5,6 @@ env:
|
||||
- LUA="lua=5.2"
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- develop
|
||||
before_install:
|
||||
- pip install hererocks
|
||||
@ -23,10 +22,10 @@ before_deploy:
|
||||
- export DATE_FORMATTED
|
||||
- COMMIT_SHA=$(git log --format=%h -1)
|
||||
- export COMMIT_SHA
|
||||
- TRAVIS_TAG="nightly/"$DATE_FORMATTED-$COMMIT_SHA
|
||||
- TRAVIS_TAG="monthly/"$DATE_FORMATTED-$COMMIT_SHA
|
||||
- export TRAVIS_TAG
|
||||
- git tag "$TRAVIS_TAG"
|
||||
- RELEASE_NAME='Nightly release - '"$DATE_FORMATTED"' - '"$COMMIT_SHA"
|
||||
- RELEASE_NAME='Monthly release - '"$DATE_FORMATTED"' - '"$COMMIT_SHA"
|
||||
- export RELEASE_NAME
|
||||
- ./.travis/release_builder.sh
|
||||
deploy:
|
||||
|
Loading…
Reference in New Issue
Block a user