Make Repository #42
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: Make Repository | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "21 4 * * 0" | |
jobs: | |
build_repository: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get current time and date | |
id: date | |
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M')" | |
- name: Makepkg Build and Check | |
id: makepkg | |
uses: misile00/pkgbuild-action@v1 | |
with: | |
pkgdir: pkgs/* | |
repoName: "pkgbuild-ci" | |
namcapDisable: true | |
makepkgArgs: --config ../../makepkg.conf | |
- name: Print Package Files | |
run: | | |
echo "Successfully created the following package archive" | |
echo "Package: ${{ steps.makepkg.outputs.pkgfile0 }}" | |
- name: Remove the current data from the release | |
uses: kopp/action-delete-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: pkgbuild-ci | |
- name: Upload Files to Release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: pkgbuild-ci | |
name: pkgbuild-ci build ${{ github.run_number }} from ${{ steps.date.outputs.date }} | |
body: pkgbuild-ci build ${{ github.run_number }} from ${{ steps.date.outputs.date }} | |
files: | | |
${{ github.workspace }}/repo/* | |
draft: false | |
prerelease: false |