项目作者: upmaru

项目描述 :
📦 Build project into Self contained package for deployment
高级语言: Elixir
项目地址: git://github.com/upmaru/pakman.git
创建时间: 2019-12-15T13:41:17Z
项目社区:https://github.com/upmaru/pakman

开源协议:

下载


PAKman

CI

This action allows you to build your software into an distributable self-contained package. It is designed to be used with instellar.app

Packing Man

Basic Usage

This is an example configuration. However you should be using the application configuration wizard on the OspMaru app.

  1. name: 'Deployment'
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - master
  7. - develop
  8. jobs:
  9. build:
  10. name: Build
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: 'Checkout'
  14. uses: actions/checkout@v4
  15. with:
  16. ref: ${{ github.ref }}
  17. fetch-depth: 0
  18. - name: Setup Pakman
  19. uses: upmaru/pakman@v8
  20. with:
  21. alpine: v3.18
  22. - name: Bootstrap Configuration
  23. run: |
  24. pakman bootstrap
  25. shell: alpine.sh {0}
  26. env:
  27. ABUILD_PRIVATE_KEY: ${{secrets.ABUILD_PRIVATE_KEY}}
  28. ABUILD_PUBLIC_KEY: ${{secrets.ABUILD_PUBLIC_KEY}}
  29. - name: 'Build Package'
  30. run: |
  31. cd "$GITHUB_WORKSPACE"/.apk/"$GITHUB_REPOSITORY" || exit
  32. abuild snapshot
  33. abuild -r
  34. shell: alpine.sh {0}
  35. - name: Upload Artifact
  36. uses: actions/upload-artifact@v4
  37. with:
  38. name: ${{ runner.arch }}
  39. path: /home/runner/packages
  40. deploy:
  41. name: Deploy
  42. needs: build
  43. runs-on: ubuntu-latest
  44. steps:
  45. - name: Checkout
  46. uses: actions/checkout@v4
  47. - uses: actions/download-artifact@v4
  48. with:
  49. path: /home/runner/artifacts
  50. - name: Setup Pakman
  51. uses: upmaru/pakman@v8
  52. with:
  53. alpine: v3.18
  54. - name: Merge Artifact
  55. run: |
  56. cp -R /home/runner/artifacts/X64/. /home/runner/packages/
  57. sudo zip -r /home/runner/packages.zip "$HOME"/packages
  58. shell: alpine.sh {0}
  59. - name: Push
  60. run: pakman push
  61. shell: alpine.sh {0}
  62. env:
  63. WORKFLOW_REF: ${{ github.ref }}
  64. WORKFLOW_SHA: ${{ github.sha }}
  65. INSTELLAR_ENDPOINT: https://opsmaru.com
  66. INSTELLAR_PACKAGE_TOKEN: ${{secrets.INSTELLAR_PACKAGE_TOKEN}}
  67. INSTELLAR_AUTH_TOKEN: ${{secrets.INSTELLAR_AUTH_TOKEN}}