Skip to content

Commit

Permalink
added build/release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Aug 20, 2024
1 parent 91c39da commit 87daf92
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and relase

on:
push:
tags:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Auto generated release
draft: true
prerelease: false
- name: Build
run: mksquashfs html/ arch-wiki.squashfs -comp xz
- name: Upload Assets to Release with a wildcard
uses: csexton/release-asset-action@v3
with:
pattern: "arch-wiki.squashfs"
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ steps.create_release.outputs.upload_url }}

0 comments on commit 87daf92

Please sign in to comment.