Skip to content

Commit

Permalink
Merge pull request #10 from 01micko/ci-puppy
Browse files Browse the repository at this point in the history
Ci puppy
  • Loading branch information
01micko authored Aug 2, 2021
2 parents b6bffad + 32d5524 commit 5b2a4a5
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# 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

# Runs a single command using the runners shell
- name: Build
run: ./puppy.sh
- name: Create Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{ github.run_number }}
release_name: v${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./puppy_standard_icons.tar.xz
asset_name: puppy_standard_icons.tar.xz
asset_content_type: application/x-xz-compressed-tar
- name: Upload Release Asset 1
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
id: upload-release-asset-1
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./puppy_standard_icons.tar.xz.sha256.txt
asset_name: puppy_standard_icons.tar.xz.sha256.txt
asset_content_type: text/plain
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ install:

clean:
-rm -rf "$(THEME)"
-rm -f *.tar.xz
-rm -f *.tar.xz*
-rm -rf *_icons
3 changes: 1 addition & 2 deletions build.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ NAME="Puppy Standard"
COMMENT="A GTK Icon Theme by zigbert, technosaurus and 01micko"
VIEWBOX="0 0 100 100"
THEME=${NAME}
PKG=${THEME/ /_}
PKG=${PKG,,}_icons
PKG=puppy_standard_icons
ROXTHEME=StandardSvg
VER=0.10
# comment if using another distro
Expand Down
3 changes: 2 additions & 1 deletion build_tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add_specs() {
# eg: pmaterial_icons-0.2|pmaterial_icons|0.2||BuildingBlock|12420K||pmaterial_icons-0.2.pet||icons for puppy loosely based on material design||||
SIZE=$(du -k -d 0 $1 | awk '{print $1}')
cat > ${1}/pet.specs <<EOF
$1-$VER|$1|$VER||BuildingBlock|${SIZE}K|$1-${VER}.pet||$NAME $COMMENT||||
$1-$VER|$1|$VER||BuildingBlock|${SIZE}K||$1-${VER}.pet||$NAME $COMMENT||||
EOF
}

Expand All @@ -14,4 +14,5 @@ echo "Packaging ${PKG} as ${PKG}.tar.xz."
[ -f "${PKG}.tar.xz" ] && rm "${PKG}.tar.xz"
(cd $PKG
tar -cJf ../${PKG}.tar.xz * )
sha256sum ${PKG}.tar.xz > ${PKG}.tar.xz.sha256.txt
echo 'Done!'

0 comments on commit 5b2a4a5

Please sign in to comment.