From a54ddd40b98fedee34c16007bec90bfd6084e7ba Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Tue, 19 Sep 2023 16:29:38 -0500 Subject: [PATCH 1/3] Add a workflow that uses a (for now) make-believe action --- .github/workflows/publish.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6a84dd3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish Package + +on: + workflow_dispatch: + push: + branches: + - release + +jobs: + build-and-push-package: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build and publish + uses: oc-ulos/upt-packager@release From 071bddc66cc750e6e725b553507c5803c559efaa Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Tue, 19 Sep 2023 16:37:12 -0500 Subject: [PATCH 2/3] Configure it, like you would in the packager config var --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6a84dd3..0c0be2f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,3 +18,6 @@ jobs: - name: Build and publish uses: oc-ulos/upt-packager@release + with: + repo: core + pkgname: coreutils From 8faa1bde7ad56b0faf805d3ff0ccd01f18aad8ff Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Wed, 20 Sep 2023 16:48:50 -0500 Subject: [PATCH 3/3] Add some more config, based on how the action turned out --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0c0be2f..3d597dd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + path: source - name: Build and publish uses: oc-ulos/upt-packager@release with: repo: core pkgname: coreutils + push_url: ${{ secrets.package_push_url }}/core + push_identity: ${{ secrets.package_push_identity }}