mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2026-02-09 03:45:23 +00:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56afc609e7 | ||
|
|
d12fdfb149 | ||
|
|
aef5542762 | ||
|
|
29cedd75fc | ||
|
|
a69c22e32e | ||
|
|
794e304fb3 | ||
|
|
14007f6464 | ||
|
|
0191170de1 | ||
|
|
0e7832dab2 | ||
|
|
1a6d9fac9a | ||
|
|
027b0ddc3d | ||
|
|
53e19ad193 | ||
|
|
0252fc4ba7 | ||
|
|
2a5c144074 | ||
|
|
7e3f6bb53b | ||
|
|
257e666c05 | ||
|
|
0313a19afa | ||
|
|
1228e65686 | ||
|
|
eb31309b6c | ||
|
|
241a975ec2 | ||
|
|
ef95519d72 | ||
|
|
ecdd3edff7 | ||
|
|
e699324f6a | ||
|
|
405e4260b4 |
3
.github/dependabot.yml
vendored
3
.github/dependabot.yml
vendored
@@ -4,3 +4,6 @@ updates:
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
groups:
|
||||
non-breaking-changes:
|
||||
update-types: [minor, patch]
|
||||
|
||||
2
.github/workflows/draft-release.yml
vendored
2
.github/workflows/draft-release.yml
vendored
@@ -8,7 +8,7 @@ jobs:
|
||||
draft-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
steps:
|
||||
- name: Update the ${{ env.TAG_NAME }} tag
|
||||
id: update-major-tag
|
||||
uses: actions/publish-action@v0.2.2
|
||||
uses: actions/publish-action@v0.3.0
|
||||
with:
|
||||
source-tag: ${{ env.TAG_NAME }}
|
||||
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
||||
|
||||
7
.github/workflows/test-hosted-runners.yml
vendored
7
.github/workflows/test-hosted-runners.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Generate files
|
||||
run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh
|
||||
@@ -31,12 +31,13 @@ jobs:
|
||||
- name: Upload Pages artifact
|
||||
uses: ./
|
||||
with:
|
||||
name: pages-artifact-${{ matrix.os }}
|
||||
path: artifact
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: github-pages
|
||||
name: pages-artifact-${{ matrix.os }}
|
||||
path: artifact2
|
||||
|
||||
- name: Extract artifact
|
||||
|
||||
@@ -47,7 +47,7 @@ steps:
|
||||
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||
done
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
# ...
|
||||
```
|
||||
|
||||
@@ -62,7 +62,7 @@ steps:
|
||||
echo "::warning title=Invalid file permissions automatically fixed::$line"
|
||||
done
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
# ...
|
||||
```
|
||||
|
||||
|
||||
13
action.yml
13
action.yml
@@ -14,6 +14,10 @@ inputs:
|
||||
description: "Duration after which artifact will expire in days."
|
||||
required: false
|
||||
default: "1"
|
||||
outputs:
|
||||
artifact_id:
|
||||
description: "The ID of the artifact that was uploaded."
|
||||
value: ${{ steps.upload-artifact.outputs.artifact-id }}
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -21,6 +25,7 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
echo ::group::Archive artifact
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "$INPUT_PATH" \
|
||||
@@ -28,6 +33,7 @@ runs:
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
.
|
||||
echo ::endgroup::
|
||||
env:
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
|
||||
@@ -36,6 +42,7 @@ runs:
|
||||
shell: sh
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
echo ::group::Archive artifact
|
||||
gtar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "$INPUT_PATH" \
|
||||
@@ -43,6 +50,7 @@ runs:
|
||||
--exclude=.git \
|
||||
--exclude=.github \
|
||||
.
|
||||
echo ::endgroup::
|
||||
env:
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
|
||||
@@ -51,6 +59,7 @@ runs:
|
||||
shell: bash
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
echo ::group::Archive artifact
|
||||
tar \
|
||||
--dereference --hard-dereference \
|
||||
--directory "$INPUT_PATH" \
|
||||
@@ -59,11 +68,13 @@ runs:
|
||||
--exclude=.github \
|
||||
--force-local \
|
||||
"."
|
||||
echo ::endgroup::
|
||||
env:
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
id: upload-artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ runner.temp }}/artifact.tar
|
||||
|
||||
Reference in New Issue
Block a user