config github user and name (#195) #63
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Releases Packages | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependent | |
run: | | |
make dependent | |
- name: Config Github | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub" | |
- name: Checkout | |
run: | | |
make $(basename ${GITHUB_REF}) | |
- name: Build binaries | |
run: | | |
make build-binaries | |
- name: Package rpm | |
run: | | |
make pkg-rpm | |
- name: Sync repository | |
env: | |
BRANCH_PREFIX: "rpm-" | |
REPOS: "rpm" | |
run: | | |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync | |
- name: Package deb | |
run: | | |
make pkg-deb | |
- name: Sync repository | |
env: | |
BRANCH_PREFIX: "deb-" | |
REPOS: "deb" | |
run: | | |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync |