From 03ef5cc90518290ae23b9364271c8227d32402fa Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 14 Jul 2025 13:53:50 -0400 Subject: [PATCH] Updating Grunt commands --- .woodpecker.yml | 30 ++++++++++++++++++++++++++++++ Gruntfile.js | 4 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..f37aa53 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,30 @@ +pipeline: + build: + image: golang:1.22 + commands: + - go mod vendor + - GOOS=linux GOARCH=amd64 go build -o "dist/blt-linux-amd64-${CI_COMMIT_TAG}.bin" + - GOOS=windows GOARCH=amd64 go build -o "dist/blt-windows-amd64-${CI_COMMIT_TAG}.exe" + + assets: + image: node:24 + commands: + - npm install + - npm run grunt build + + package: + image: alpine + commands: + - tar -cvzf "dist/blt-assets-${CI_COMMIT_TAG}.tar.gz" public/ + + gitea_release: + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_api_key + base_url: https://git.metaunix.net + title: "${CI_COMMIT_TAG}" + files: + - dist/blt-* + when: + event: tag diff --git a/Gruntfile.js b/Gruntfile.js index c3bffb7..b8db4ef 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -60,6 +60,8 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-coffee'); // CLI tasks. - grunt.registerTask('default', ['sass', 'coffee']); + grunt.registerTask('build', ['sass', 'coffee']); + grunt.registerTask('dev', ['watch']); + grunt.registerTask('default', ['build']); };